ports/www/mozilla-firefox/patches/patch-widget_gtk_v4l2test_v4l2test_cpp

20 lines
501 B
Text

Index: widget/gtk/v4l2test/v4l2test.cpp
https://bugzilla.mozilla.org/show_bug.cgi?id=1847500
--- widget/gtk/v4l2test/v4l2test.cpp.orig
+++ widget/gtk/v4l2test/v4l2test.cpp
@@ -9,7 +9,13 @@
#include <cstdlib>
#include <errno.h>
#include <fcntl.h>
+#if defined(__NetBSD__) || defined(__OpenBSD__) // WEBRTC_BSD
+#include <sys/videoio.h>
+#elif defined(__sun)
+#include <sys/videodev2.h>
+#else
#include <linux/videodev2.h>
+#endif
#include <sys/ioctl.h>
#include <unistd.h>
#include <string.h>