Include linux/types.h to make this crap compile
This commit is contained in:
parent
219316fd7c
commit
0b6356d17b
11
0001-linux-types.patch
Normal file
11
0001-linux-types.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -urN libnfnetlink-0.0.16.orig/src/libnfnetlink.c libnfnetlink-0.0.16/src/libnfnetlink.c
|
||||||
|
--- libnfnetlink-0.0.16.orig/src/libnfnetlink.c 2006-05-17 18:20:31.000000000 +0400
|
||||||
|
+++ libnfnetlink-0.0.16/src/libnfnetlink.c 2006-07-14 00:49:07.000000000 +0400
|
||||||
|
@@ -37,6 +37,7 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
+#include <linux/types.h>
|
||||||
|
#include <linux/netlink.h>
|
||||||
|
|
||||||
|
#include <libnfnetlink/libnfnetlink.h>
|
@ -7,6 +7,7 @@ License: GPL
|
|||||||
URL: http://netfilter.org
|
URL: http://netfilter.org
|
||||||
Source0: http://netfilter.org/projects/libnfnetlink/files/%{name}-%{version}.tar.bz2
|
Source0: http://netfilter.org/projects/libnfnetlink/files/%{name}-%{version}.tar.bz2
|
||||||
Source1: http://www.gnu.org/licenses/gpl.txt
|
Source1: http://www.gnu.org/licenses/gpl.txt
|
||||||
|
Patch0: 0001-linux-types.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
#BuildRequires:
|
#BuildRequires:
|
||||||
@ -31,6 +32,7 @@ and libnfnetlink_queue.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -p1
|
||||||
cp %{SOURCE1} LICENSE
|
cp %{SOURCE1} LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user