aboutsummaryrefslogtreecommitdiffstats
path: root/community/mumudvb/0001-Fix-compiling-with-kernels-4.14.patch
diff options
context:
space:
mode:
authorinfo@mobile-stream.com <info@mobile-stream.com>2018-11-20 22:10:57 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-11-26 10:02:58 +0000
commit19f4d416d006e4ae92c703ea3dc16fed2287475b (patch)
treef4394ad9e53a422fcc678128403d7c46ad582b0f /community/mumudvb/0001-Fix-compiling-with-kernels-4.14.patch
parent3970af14ba8bfa801689a34b225ef2fe97e8220d (diff)
community/mumudvb: fix build against linux-headers-4.18.3
This pulls upstream commit 596f7dbebd2590f7e77cf755af46952f340ddb97
Diffstat (limited to 'community/mumudvb/0001-Fix-compiling-with-kernels-4.14.patch')
-rw-r--r--community/mumudvb/0001-Fix-compiling-with-kernels-4.14.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/mumudvb/0001-Fix-compiling-with-kernels-4.14.patch b/community/mumudvb/0001-Fix-compiling-with-kernels-4.14.patch
new file mode 100644
index 00000000000..6a200b64c77
--- /dev/null
+++ b/community/mumudvb/0001-Fix-compiling-with-kernels-4.14.patch
@@ -0,0 +1,35 @@
+From 596f7dbebd2590f7e77cf755af46952f340ddb97 Mon Sep 17 00:00:00 2001
+From: Brice Dubost <mumudvb@braice.net>
+Date: Sat, 25 Nov 2017 20:21:10 -0500
+Subject: [PATCH] Fix compiling with kernels > 4.14
+
+---
+ src/scam_common.h | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/src/scam_common.h b/src/scam_common.h
+index 05ee7e5..c3436de 100644
+--- a/src/scam_common.h
++++ b/src/scam_common.h
+@@ -61,6 +61,18 @@
+
+ #define MAX_STATIC_KEYS 24
+
++//Quick hack around the removal of ca_pid_t and CA_GET_PID in recent kernels
++//https://github.com/torvalds/linux/commit/833ff5e7feda1a042b83e82208cef3d212ca0ef1
++#ifndef CA_SET_PID
++typedef struct ca_pid {
++ unsigned int pid;
++ int index; /* -1 == disable*/
++ } ca_pid_t;
++//We should not be able to get it so a number that is unlikely to happen
++#define CA_SET_PID 42424242
++#endif
++
++
+ /** @brief the parameters for the scam
+ * This structure contain the parameters needed for the SCAM
+ */
+--
+2.19.1
+