summarylogtreecommitdiffstats
path: root/02-fix-have_unlocked_ioctl.patch
diff options
context:
space:
mode:
Diffstat (limited to '02-fix-have_unlocked_ioctl.patch')
-rw-r--r--02-fix-have_unlocked_ioctl.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/02-fix-have_unlocked_ioctl.patch b/02-fix-have_unlocked_ioctl.patch
new file mode 100644
index 000000000000..7699c2a189e8
--- /dev/null
+++ b/02-fix-have_unlocked_ioctl.patch
@@ -0,0 +1,17 @@
+diff --git a/blackmagic-11.7a12/blackmagic_core.c b/blackmagic-11.7a12/blackmagic_core.c
+index 2acbdd6..8d4f332 100644
+--- a/blackmagic-11.7a12/blackmagic_core.c
++++ b/blackmagic-11.7a12/blackmagic_core.c
+@@ -41,6 +41,12 @@
+
+ #include "blackmagic_core.h"
+
++
++/* HAVE_UNLOCKED_IOCTL has been removed in kernel 5.9 */
++#if KERNEL_VERSION_OR_LATER(5, 9, 0)
++# define HAVE_UNLOCKED_IOCTL 1
++#endif
++
+ unsigned long blackmagic_flags = 0;
+ module_param(blackmagic_flags, ulong, S_IRUGO | S_IWUSR);
+