[vlc-commits] [Git][videolan/vlc][3.0.x] v4l2: use proper headers for OpenBSD's V4L2 support

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 3 08:08:33 UTC 2022



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
47bd9018 by Brad Smith at 2022-11-03T07:52:03+00:00
v4l2: use proper headers for OpenBSD's V4L2 support

(cherry picked from commit c7905ecc665b1b464bbf13ddc395e2e7f8ddd8b2)

- - - - -


1 changed file:

- modules/access/v4l2/v4l2.h


Changes:

=====================================
modules/access/v4l2/v4l2.h
=====================================
@@ -18,7 +18,12 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include <linux/videodev2.h>
+#if defined(HAVE_LINUX_VIDEODEV2_H)
+#   include <linux/videodev2.h>
+#elif defined(HAVE_SYS_VIDEOIO_H)
+#   include <sys/ioccom.h>
+#   include <sys/videoio.h>
+#endif
 
 /* libv4l2 functions */
 extern int (*v4l2_fd_open) (int, int);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/47bd9018f0f33770e850d038f9981503e04b25fc

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/47bd9018f0f33770e850d038f9981503e04b25fc
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list