]> git.pld-linux.org Git - packages/linux-gpib.git/commitdiff
- fix building with kernel 4.11 auto/th/linux-gpib-4.0.3-9
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 10 May 2017 05:41:26 +0000 (07:41 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 10 May 2017 05:41:26 +0000 (07:41 +0200)
- rel 9

kernel-4.11.patch [new file with mode: 0644]
linux-gpib.spec

diff --git a/kernel-4.11.patch b/kernel-4.11.patch
new file mode 100644 (file)
index 0000000..46f98cb
--- /dev/null
@@ -0,0 +1,13 @@
+diff -ur linux-gpib-4.0.3/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c linux-gpib-4.0.3-4.11/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
+--- linux-gpib-4.0.3/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c        2016-04-09 15:33:13.000000000 +0200
++++ linux-gpib-4.0.3-4.11/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c   2017-05-10 07:38:40.555593617 +0200
+@@ -26,6 +26,9 @@
+ #include <linux/version.h>
+ #include <linux/module.h>
+ #include <linux/sched.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
++#include <linux/sched/signal.h>
++#endif
+ #include <linux/init.h>
+ #include <linux/kernel.h>
+ #include <linux/tty.h>
index f307ac85f20c43175bbb67288506aa349fc7646b..a46252e06901c4d84f70039289aef6022fc60216 100644 (file)
@@ -33,7 +33,7 @@ exit 1
 %include       /usr/lib/rpm/macros.perl
 %define                php_name        php%{?php_suffix}
 
-%define                rel     8
+%define                rel     9
 %define                pname   linux-gpib
 Summary:       GPIB (IEEE 488) Linux support
 Summary(pl.UTF-8):     Obsługa GPIB (IEEE 488) dla Linuksa
@@ -51,6 +51,7 @@ Patch3:               %{pname}-perl.patch
 Patch4:                %{pname}-firmwaredir.patch
 Patch5:                %{pname}-guile2.patch
 Patch6:                %{pname}-php7.patch
+Patch7:                kernel-4.11.patch
 URL:           http://linux-gpib.sourceforge.net/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -259,6 +260,7 @@ cd ../..\
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 # disable modules build by default, just install userspace header
 echo 'SUBDIRS = gpib/include' > drivers/Makefile.am
This page took 0.032398 seconds and 4 git commands to generate.