opnsense-ports/multimedia/libv4l/files/patch-lib_include_libdvbv5_dvb-frontend.h
Franco Fichtner a1caf1f702 */*: sync with upstream
Taken from: HardenedBSD
2020-04-18 19:38:26 +02:00

20 lines
731 B
C

--- lib/include/libdvbv5/dvb-frontend.h.orig 2020-04-09 16:29:54 UTC
+++ lib/include/libdvbv5/dvb-frontend.h
@@ -908,7 +908,17 @@ struct dtv_properties {
#define FE_DISHNETWORK_SEND_LEGACY_CMD _IO('o', 80) /* unsigned int */
#define FE_SET_PROPERTY _IOW('o', 82, struct dtv_properties)
+#ifdef __linux__
#define FE_GET_PROPERTY _IOR('o', 83, struct dtv_properties)
+#else
+/*
+ * This is broken on Linux as well but they workaround it in the driver.
+ * Since this is impossible to do on FreeBSD fix the header instead.
+ * Detailed and discussion :
+ * http://lists.freebsd.org/pipermail/freebsd-multimedia/2010-April/010958.html
+ */
+#define FE_GET_PROPERTY _IOW('o', 83, struct dtv_properties)
+#endif
/*