diff options
author | Cédric Krier <cedk@gentoo.org> | 2007-05-05 10:52:19 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2007-05-05 10:52:19 +0000 |
commit | 133d82e35ff289dd2693b4d4723db146b7282fa5 (patch) | |
tree | a32d44024dc0269b823ef1a822eb3cd75900ceb0 /net-libs/libpcap/files | |
parent | Change find -wholename to -path to work on fbsd. (diff) | |
download | gentoo-2-133d82e35ff289dd2693b4d4723db146b7282fa5.tar.gz gentoo-2-133d82e35ff289dd2693b4d4723db146b7282fa5.tar.bz2 gentoo-2-133d82e35ff289dd2693b4d4723db146b7282fa5.zip |
net-libs/libpcap: Add patch for cross-compile for bug #172210
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-libs/libpcap/files')
-rw-r--r-- | net-libs/libpcap/files/libpcap-cross-linux.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-libs/libpcap/files/libpcap-cross-linux.patch b/net-libs/libpcap/files/libpcap-cross-linux.patch new file mode 100644 index 000000000000..8d21868018dd --- /dev/null +++ b/net-libs/libpcap/files/libpcap-cross-linux.patch @@ -0,0 +1,27 @@ +diff -ru libpcap-0.9.5~/configure.in libpcap-0.9.5/configure.in +--- libpcap-0.9.5~/configure.in 2007-05-05 12:43:21.000000000 +0200 ++++ libpcap-0.9.5/configure.in 2007-05-05 12:43:41.000000000 +0200 +@@ -178,7 +178,10 @@ + dnl XXX This could be done for cross-compiling, but for now it's not. + dnl + if test -z "$with_pcap" && test "$cross_compiling" = yes; then +- AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...) ++ case $host in ++ *-linux*) with_pcap="linux";; ++ *) AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...);; ++ esac + fi + AC_ARG_WITH(pcap, [ --with-pcap=TYPE use packet capture TYPE]) + AC_MSG_CHECKING(packet capture type) +@@ -347,8 +350,10 @@ + linux) + AC_MSG_CHECKING(Linux kernel version) + if test "$cross_compiling" = yes; then ++ dnl we could check linux/version.h here, but who runs ++ dnl versions of linux older than 2.0.x anymore to bother ? + AC_CACHE_VAL(ac_cv_linux_vers, +- ac_cv_linux_vers=unknown) ++ ac_cv_linux_vers=2) + else + AC_CACHE_VAL(ac_cv_linux_vers, + ac_cv_linux_vers=`uname -r 2>&1 | \ |