patch for centos
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 27 Sep 2008 21:42:50 +0000 (21:42 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 27 Sep 2008 21:42:50 +0000 (21:42 +0000)
libnl-1.0-missing-declaration.patch [new file with mode: 0644]
libnl.spec

diff --git a/libnl-1.0-missing-declaration.patch b/libnl-1.0-missing-declaration.patch
new file mode 100644 (file)
index 0000000..f041e04
--- /dev/null
@@ -0,0 +1,12 @@
+--- libnl-1.0/lib/route/link/vlan.c.orig       2008-01-16 22:59:21.000000000 -0800
++++ libnl-1.0/lib/route/link/vlan.c    2008-01-16 22:59:36.000000000 -0800
+@@ -27,6 +27,9 @@
+ #include <netlink/route/link/vlan.h>
+ #include <linux/if_vlan.h>
++#ifndef VLAN_FLAG_REORDER_HDR
++#define VLAN_FLAG_REORDER_HDR 0x01
++#endif
+ /** @cond SKIP */
+ #define VLAN_HAS_ID           (1<<0)
index 9d0fb35..0a46e8c 100644 (file)
@@ -12,6 +12,7 @@ Patch1: libnl-1.0-pre5-static.patch
 Patch2: libnl-1.0-pre5-debuginfo.patch
 Patch3: libnl-1.0-pre8-use-vasprintf-retval.patch
 Patch4: libnl-1.0-pre8-more-build-output.patch
 Patch2: libnl-1.0-pre5-debuginfo.patch
 Patch3: libnl-1.0-pre8-use-vasprintf-retval.patch
 Patch4: libnl-1.0-pre8-more-build-output.patch
+Patch5: libnl-1.0-missing-declaration.patch
 
 %description
 This package contains a convenience library to simplify
 
 %description
 This package contains a convenience library to simplify
@@ -34,6 +35,7 @@ This package contains various headers for using libnl
 %patch2 -p1 -b .debuginfo
 %patch3 -p1 -b .use-vasprintf-retval
 %patch4 -p1 -b .more-build-output
 %patch2 -p1 -b .debuginfo
 %patch3 -p1 -b .use-vasprintf-retval
 %patch4 -p1 -b .more-build-output
+%patch5 -p1 -b .missing-declaration
 
 %build
 %configure
 
 %build
 %configure