]> git.pld-linux.org Git - packages/dahdi-linux.git/commitdiff
- fix building with latest 4.14 kernel
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 10 Mar 2019 19:16:00 +0000 (20:16 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 10 Mar 2019 19:16:00 +0000 (20:16 +0100)
dahdi-linux.spec
kernel-4.14.patch [new file with mode: 0644]

index b30b1ba74dc1aa981f50d704dc2597cf1b3c613a..1e8a63576475229e5159c9e561591114c0f04c22 100644 (file)
@@ -58,6 +58,7 @@ Source6:      %{FIRMWARE_URL}/dahdi-fw-tc400m-MR6.12.tar.gz
 Source7:       %{FIRMWARE_URL}/dahdi-fw-hx8-2.06.tar.gz
 # Source7-md5: a7f3886942bb3e9fed349a41b3390c9f
 Patch0:                kernel-5.0.patch
+Patch1:                kernel-4.14.patch
 URL:           http://www.asterisk.org/
 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
 BuildRequires: perl-base
@@ -156,6 +157,7 @@ cd ../..\
 %prep
 %setup -q -n %{pname}-%{version}
 %patch0 -p1
+%patch1 -p1
 
 for a in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7}; do
        ln -s $a drivers/dahdi/firmware
diff --git a/kernel-4.14.patch b/kernel-4.14.patch
new file mode 100644 (file)
index 0000000..65a7760
--- /dev/null
@@ -0,0 +1,16 @@
+--- dahdi-linux-3.0.0/include/dahdi/kernel.h~  2018-11-15 15:03:40.000000000 +0100
++++ dahdi-linux-3.0.0/include/dahdi/kernel.h   2019-03-10 20:14:29.249473418 +0100
+@@ -1406,9 +1406,13 @@
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 104)
+ #ifndef TIMER_DATA_TYPE
+ #define TIMER_DATA_TYPE unsigned long
+ #endif
++#else
++#define TIMER_DATA_TYPE struct timer_list *
++#endif
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 13, 0)
This page took 0.112312 seconds and 4 git commands to generate.