--- modules/videoio/src/cap_v4l.cpp.orig 2021-04-02 11:23:54 UTC +++ modules/videoio/src/cap_v4l.cpp @@ -228,7 +228,9 @@ make & enjoy! #include #ifdef HAVE_CAMV4L2 +#ifdef __linux__ #include /* for videodev2.h */ +#endif #include #endif