summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2018-01-15 12:28:04 -0500
committerZero_Chaos <zerochaos@gentoo.org>2018-01-15 12:31:31 -0500
commit5a6e3bf4e5f96760c494f80123af516ea68f268f (patch)
tree17499dedd2d2d5cd270255c731157c88ea6c819e /net-libs/libpcap/files
parentsys-kernel/gentoo-sources: Added fix e1000e ICH8 network interfaces (diff)
downloadgentoo-5a6e3bf4e5f96760c494f80123af516ea68f268f.tar.gz
gentoo-5a6e3bf4e5f96760c494f80123af516ea68f268f.tar.bz2
gentoo-5a6e3bf4e5f96760c494f80123af516ea68f268f.zip
net-libs/libpcap: import fix from debian for bug#602098
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'net-libs/libpcap/files')
-rw-r--r--net-libs/libpcap/files/libpcap-1.8.1-disable-remote.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/net-libs/libpcap/files/libpcap-1.8.1-disable-remote.patch b/net-libs/libpcap/files/libpcap-1.8.1-disable-remote.patch
new file mode 100644
index 000000000000..df68a5f0aa03
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-1.8.1-disable-remote.patch
@@ -0,0 +1,31 @@
+This patch was taken directly from debian: https://packages.debian.org/source/stretch/libpcap
+
+Disable bits of remote capture support inherited from the WinPCAP merge
+which cause applications to FTBFS if they define HAVE_REMOTE (#843384).
+
+--- a/pcap/pcap.h
++++ b/pcap/pcap.h
+@@ -506,6 +506,11 @@
+ #define MODE_STAT 1
+ #define MODE_MON 2
+
++#ifdef HAVE_REMOTE
++ /* Includes most of the public stuff that is needed for the remote capture */
++ #include <remote-ext.h>
++#endif /* HAVE_REMOTE */
++
+ #elif defined(MSDOS)
+
+ /*
+@@ -526,11 +531,6 @@
+
+ #endif /* _WIN32/MSDOS/UN*X */
+
+-#ifdef HAVE_REMOTE
+- /* Includes most of the public stuff that is needed for the remote capture */
+- #include <remote-ext.h>
+-#endif /* HAVE_REMOTE */
+-
+ #ifdef __cplusplus
+ }
+ #endif