diff options
-rw-r--r-- | packages/libnl/files/fix-includes.patch | 13 | ||||
-rw-r--r-- | packages/libnl/libnl_1.1.bb | 2 |
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 () { |