summaryrefslogtreecommitdiff
path: root/packages/libnl
diff options
context:
space:
mode:
authorSergey Lapin <slapin@ossfans.org>2009-01-30 10:58:31 +0300
committerGraeme Gregory <dp@xora.org.uk>2009-01-30 10:57:30 +0000
commit2a50d925239d80b70dc0c74c5809a8c4ebf12a8e (patch)
tree4a185d43560e0f9c26a5c80ee664018a3be72a18 /packages/libnl
parentb87d74dc9c51bdf949c017c77b1cf93d7be4c134 (diff)
libnl build fix
Signed-off-by: Sergey Lapin <slapin@ossfans.org>
Diffstat (limited to 'packages/libnl')
-rw-r--r--packages/libnl/files/fix-includes.patch13
-rw-r--r--packages/libnl/libnl_1.1.bb2
2 files changed, 15 insertions, 0 deletions
diff --git a/packages/libnl/files/fix-includes.patch b/packages/libnl/files/fix-includes.patch
new file mode 100644
index 0000000000..b172fd2f86
--- /dev/null
+++ b/packages/libnl/files/fix-includes.patch
@@ -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)
diff --git a/packages/libnl/libnl_1.1.bb b/packages/libnl/libnl_1.1.bb
index 51f4c4385b..dcca3c6e92 100644
--- a/packages/libnl/libnl_1.1.bb
+++ b/packages/libnl/libnl_1.1.bb
@@ -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 () {