summaryrefslogtreecommitdiff
path: root/testing/libpcap/libnl32.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-27 00:01:57 +0000
committerroot <root@rshg054.dnsready.net>2012-06-27 00:01:57 +0000
commitc77c7fc60c48c9aaa8f915eb112405e8879e46aa (patch)
tree46509cb375dc9d89676ab0d115c35629fc7326ae /testing/libpcap/libnl32.patch
parent9a6b691757346035549dbd12d1323301d04a6675 (diff)
Wed Jun 27 00:01:57 UTC 2012
Diffstat (limited to 'testing/libpcap/libnl32.patch')
-rw-r--r--testing/libpcap/libnl32.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/libpcap/libnl32.patch b/testing/libpcap/libnl32.patch
new file mode 100644
index 000000000..633fd003e
--- /dev/null
+++ b/testing/libpcap/libnl32.patch
@@ -0,0 +1,19 @@
+diff -u -r libpcap-1.2.1/configure.in libpcap-1.2.1-libnl32/configure.in
+--- libpcap-1.2.1/configure.in 2012-01-02 01:47:37.000000000 +0100
++++ libpcap-1.2.1-libnl32/configure.in 2012-02-09 19:29:29.405603749 +0100
+@@ -433,12 +433,13 @@
+ #
+ # Try libnl 2.x first.
+ #
+- AC_CHECK_LIB(nl, nl_socket_alloc,
++ AC_CHECK_LIB(nl-3, nl_socket_alloc,
+ [
+ #
+ # Yes, we have libnl 2.x.
+ #
+- LIBS="-lnl-genl -lnl $LIBS"
++ LIBS="$(pkg-config --libs libnl-genl-3.0 libnl-3.0) $LIBS"
++ V_INCLS="$V_INCLS $(pkg-config --cflags libnl-genl-3.0 libnl-3.0)"
+ AC_DEFINE(HAVE_LIBNL,1,[if libnl exists])
+ AC_DEFINE(HAVE_LIBNL_2_x,1,[if libnl exists and is version 2.x])
+ ],