fix build on linux-4.8
This commit is contained in:
parent
53d4034a01
commit
fe60060df2
12
net-tools-linux48.patch
Normal file
12
net-tools-linux48.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up net-tools-2.0/iptunnel.c.linux48 net-tools-2.0/iptunnel.c
|
||||||
|
--- net-tools-2.0/iptunnel.c.linux48 2016-02-15 16:54:18.000000000 +0100
|
||||||
|
+++ net-tools-2.0/iptunnel.c 2016-10-12 09:16:57.429279406 +0200
|
||||||
|
@@ -26,7 +26,7 @@
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
-#include <netinet/ip.h>
|
||||||
|
+#include <linux/ip.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#include <net/if.h>
|
||||||
|
#include <net/if_arp.h>
|
@ -3,7 +3,7 @@
|
|||||||
Summary: Basic networking tools
|
Summary: Basic networking tools
|
||||||
Name: net-tools
|
Name: net-tools
|
||||||
Version: 2.0
|
Version: 2.0
|
||||||
Release: 0.38.%{checkout}%{?dist}
|
Release: 0.39.%{checkout}%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://sourceforge.net/projects/net-tools/
|
URL: http://sourceforge.net/projects/net-tools/
|
||||||
@ -26,6 +26,9 @@ Patch1: net-tools-cycle.patch
|
|||||||
# various man page fixes merged into one patch
|
# various man page fixes merged into one patch
|
||||||
Patch2: net-tools-man.patch
|
Patch2: net-tools-man.patch
|
||||||
|
|
||||||
|
# linux-4.8
|
||||||
|
Patch3: net-tools-linux48.patch
|
||||||
|
|
||||||
# use all interfaces instead of default (#1003875)
|
# use all interfaces instead of default (#1003875)
|
||||||
Patch20: ether-wake-interfaces.patch
|
Patch20: ether-wake-interfaces.patch
|
||||||
|
|
||||||
@ -44,6 +47,7 @@ Most of them are obsolete. For replacement check iproute package.
|
|||||||
%setup -q -c
|
%setup -q -c
|
||||||
%patch1 -p1 -b .cycle
|
%patch1 -p1 -b .cycle
|
||||||
%patch2 -p1 -b .man
|
%patch2 -p1 -b .man
|
||||||
|
%patch3 -p1 -b .linux48
|
||||||
|
|
||||||
cp %SOURCE1 ./config.h
|
cp %SOURCE1 ./config.h
|
||||||
cp %SOURCE2 ./config.make
|
cp %SOURCE2 ./config.make
|
||||||
@ -127,6 +131,9 @@ install -D -p -m 644 %{SOURCE9} %{buildroot}%{_unitdir}/arp-ethers.service
|
|||||||
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 12 2016 Jiri Popelka <jpopelka@redhat.com> - 2.0-0.39.20160329git
|
||||||
|
- fix build on linux-4.8
|
||||||
|
|
||||||
* Wed Mar 30 2016 Jiri Popelka <jpopelka@redhat.com> - 2.0-0.38.20160329git
|
* Wed Mar 30 2016 Jiri Popelka <jpopelka@redhat.com> - 2.0-0.38.20160329git
|
||||||
- just few nitpicks :)
|
- just few nitpicks :)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user