Commit 7dad0f23 authored by Alexander Alekhin's avatar Alexander Alekhin

build: workaround for FORTIFY_SOURCE=2 builds on Alpine

parent b3a07166
......@@ -42,6 +42,11 @@
#ifndef __VIDEOIO_H_
#define __VIDEOIO_H_
#if defined __linux__ || defined __APPLE__ || defined __HAIKU__
#include <unistd.h> // -D_FORTIFY_SOURCE=2 workaround: https://github.com/opencv/opencv/issues/15020
#endif
#include "opencv2/videoio.hpp"
#include "opencv2/videoio/legacy/constants_c.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment