summaryrefslogtreecommitdiffstats
path: root/package/libpcap/libpcap-0001-remove-libnl-include-path.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2013-12-16 16:03:03 +0100
committerPeter Korsgaard <peter@korsgaard.com>2013-12-16 16:03:03 +0100
commit7f05f73e44d8be72aacb53d279585281b639058f (patch)
tree3d9abd2b108eb7095a5dd20e9aa8a6976707abcb /package/libpcap/libpcap-0001-remove-libnl-include-path.patch
parent9e8015d4651a77a40a9ffe48051e53baecc20ced (diff)
downloadbuildroot-7f05f73e44d8be72aacb53d279585281b639058f.tar.gz
buildroot-7f05f73e44d8be72aacb53d279585281b639058f.zip
libpcap: add upstream patch to fix runtime issue when TPACKET_V3 isn't supported
libpcap would fail to initialize on Linux when compiled against kernel headers with TPACKET_V3 support but running on kernel without: "can't get TPACKET_V3 header len on packet socket: Invalid argument" Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libpcap/libpcap-0001-remove-libnl-include-path.patch')
-rw-r--r--package/libpcap/libpcap-0001-remove-libnl-include-path.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/libpcap/libpcap-0001-remove-libnl-include-path.patch b/package/libpcap/libpcap-0001-remove-libnl-include-path.patch
new file mode 100644
index 0000000000..7b7106b53d
--- /dev/null
+++ b/package/libpcap/libpcap-0001-remove-libnl-include-path.patch
@@ -0,0 +1,16 @@
+Remove hardcoded path to libnl3 include directory
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/configure.in
+===================================================================
+--- a/configure.in
++++ b/configure.in
+@@ -445,7 +445,6 @@
+ AC_DEFINE(HAVE_LIBNL_3_x,1,[if libnl exists and is version 3.x])
+ AC_DEFINE(HAVE_LIBNL_NLE,1,[libnl has NLE_FAILURE])
+ AC_DEFINE(HAVE_LIBNL_SOCKETS,1,[libnl has new-style socket api])
+- V_INCLS="$V_INCLS -I/usr/include/libnl3"
+ have_any_nl="yes"
+ ])
+
OpenPOWER on IntegriCloud