summaryrefslogtreecommitdiff
blob: df68a5f0aa03f7d0cd8dbd683cc2c34817747b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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