summaryrefslogtreecommitdiff
path: root/testing/libpcap/libnl32.patch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-06-27 11:00:34 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-06-27 11:00:34 -0300
commit6fa19b4570c3cef91cf336bbefd6b9583e89ecce (patch)
tree62facaa87cc6fd640437cc18226ca853496a4a02 /testing/libpcap/libnl32.patch
parent57fc26a638bd3856b660dd8839999d5bab9bfeac (diff)
parent5aee7ab49f65d6fee1182bfcacf92192ad36c4af (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/moreutils/PKGBUILD core/iputils/PKGBUILD libre/texlive-bin-libre/PKGBUILD testing/openldap/PKGBUILD
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])
+ ],