aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpcap/disable-remote.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-08-16 17:34:23 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-08-16 17:45:16 +0200
commitafb821ce0d8aff2cc569abebaba9e1c9ff15a131 (patch)
treebb4c28d6c72814b8511670cd659e8c1f9616ead3 /main/libpcap/disable-remote.patch
parent82b489f10109265b30dd0166858db2e6cbce85de (diff)
downloadaports-afb821ce0d8aff2cc569abebaba9e1c9ff15a131.tar.bz2
aports-afb821ce0d8aff2cc569abebaba9e1c9ff15a131.tar.xz
main/libpcap: remove HAVE_REMOTE to fix ostinato build
Diffstat (limited to 'main/libpcap/disable-remote.patch')
-rw-r--r--main/libpcap/disable-remote.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/main/libpcap/disable-remote.patch b/main/libpcap/disable-remote.patch
new file mode 100644
index 0000000000..91a94e9a51
--- /dev/null
+++ b/main/libpcap/disable-remote.patch
@@ -0,0 +1,30 @@
+Disable bits of remote capture support inherited from the WinPCAP merge
+which cause applications to fail to build if they define HAVE_REMOTE (#843384).
+
+Patch-Source: https://sources.debian.net/src/libpcap/1.8.1-3/debian/patches/disable-remote.diff/
+--- 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