Include linux/types.h to make this crap compile

This commit is contained in:
Paul P Komkoff Jr 2006-07-13 20:55:23 +00:00
parent 219316fd7c
commit 0b6356d17b
2 changed files with 13 additions and 0 deletions

11
0001-linux-types.patch Normal file
View 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>

View File

@ -7,6 +7,7 @@ License: GPL
URL: http://netfilter.org
Source0: http://netfilter.org/projects/libnfnetlink/files/%{name}-%{version}.tar.bz2
Source1: http://www.gnu.org/licenses/gpl.txt
Patch0: 0001-linux-types.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires:
@ -31,6 +32,7 @@ and libnfnetlink_queue.
%prep
%setup -q
%patch -p1
cp %{SOURCE1} LICENSE