libnl build fix
authorSergey Lapin <slapin@ossfans.org>
Fri, 30 Jan 2009 07:58:31 +0000 (10:58 +0300)
committerGraeme Gregory <dp@xora.org.uk>
Fri, 30 Jan 2009 10:57:30 +0000 (10:57 +0000)
Signed-off-by: Sergey Lapin <slapin@ossfans.org>
packages/libnl/files/fix-includes.patch [new file with mode: 0644]
packages/libnl/libnl_1.1.bb

diff --git a/packages/libnl/files/fix-includes.patch b/packages/libnl/files/fix-includes.patch
new file mode 100644 (file)
index 0000000..b172fd2
--- /dev/null
@@ -0,0 +1,13 @@
+diff -ruN libnl-1.1/lib/route/link/vlan.c libnl-1.1-new/lib/route/link/vlan.c
+--- libnl-1.1/lib/route/link/vlan.c    2008-01-14 18:48:45.000000000 +0300
++++ libnl-1.1-new/lib/route/link/vlan.c        2009-01-30 10:55:09.000000000 +0300
+@@ -26,7 +26,9 @@
+ #include <netlink/route/link/info-api.h>
+ #include <netlink/route/link/vlan.h>
++#ifndef VLAN_FLAG_REORDER_HDR
+ #include <linux/if_vlan.h>
++#endif
+ /** @cond SKIP */
+ #define VLAN_HAS_ID           (1<<0)
index 51f4c43..dcca3c6 100644 (file)
@@ -2,6 +2,7 @@ DESCRIPTION = "libnl is a library for applications dealing with netlink sockets"
 SECTION = "libs/network"
 LICENSE = "LGPL"
 HOMEPAGE = "http://people.suug.ch/~tgr/libnl"
+PR = "r1"
 
 inherit autotools pkgconfig
 
@@ -10,6 +11,7 @@ CFLAGS += '-DVLAN_FLAG_REORDER_HDR=1'
 SRC_URI = "\
   http://people.suug.ch/~tgr/libnl/files/libnl-${PV}.tar.gz \
   file://local-includes-and-avoid-wrong-ldflags.patch;patch=1 \
+  file://fix-includes.patch;patch=1 \
 "
 
 do_stage () {