From 00102649a39a61aac866ba182889fe9ccd78ed07 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Wed, 22 Dec 2021 13:50:10 +0100 Subject: [PATCH] video_capture: Use correct V4L2 header on OpenBSD video(4) provides everything needed, the Linux header does not exist. Tested on OpenBSD/amd64 7.0 -CURRENT. --- src/modules/video_capture/linux/device_info_linux.cc | 4 ++++ src/modules/video_capture/linux/video_capture_linux.cc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/modules/video_capture/linux/device_info_linux.cc b/src/modules/video_capture/linux/device_info_linux.cc index cde3b86d..2a92d469 100644 --- a/src/modules/video_capture/linux/device_info_linux.cc +++ b/src/modules/video_capture/linux/device_info_linux.cc @@ -18,7 +18,11 @@ #include #include // v4l includes +#if defined(__OpenBSD__) +#include +#else #include +#endif #include diff --git a/src/modules/video_capture/linux/video_capture_linux.cc b/src/modules/video_capture/linux/video_capture_linux.cc index 10f9713e..86c73c4a 100644 --- a/src/modules/video_capture/linux/video_capture_linux.cc +++ b/src/modules/video_capture/linux/video_capture_linux.cc @@ -12,7 +12,11 @@ #include #include +#if defined(__OpenBSD__) +#include +#else #include +#endif #include #include #include