summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/libpcap
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/libpcap')
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap/disable-remote.patch36
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap/disable-remote.patch b/meta/recipes-connectivity/libpcap/libpcap/disable-remote.patch
new file mode 100644
index 0000000000..7e1eea6b1e
--- /dev/null
+++ b/meta/recipes-connectivity/libpcap/libpcap/disable-remote.patch
@@ -0,0 +1,36 @@
1Disable bits of remote capture support inherited from the WinPCAP merge
2which cause applications to FTBFS if they define HAVE_REMOTE.
3
4Patch from:
5https://anonscm.debian.org/cgit/users/rfrancoise/libpcap.git/commit/?
6id=f35949969269dfdcc3549b12fade604755e1e326
7
8Upstream-Status: Pending
9
10--- a/pcap/pcap.h
11+++ b/pcap/pcap.h
12@@ -506,6 +506,11 @@
13 #define MODE_STAT 1
14 #define MODE_MON 2
15
16+#ifdef HAVE_REMOTE
17+ /* Includes most of the public stuff that is needed for the remote capture */
18+ #include <remote-ext.h>
19+#endif /* HAVE_REMOTE */
20+
21 #elif defined(MSDOS)
22
23 /*
24@@ -526,11 +531,6 @@
25
26 #endif /* _WIN32/MSDOS/UN*X */
27
28-#ifdef HAVE_REMOTE
29- /* Includes most of the public stuff that is needed for the remote capture */
30- #include <remote-ext.h>
31-#endif /* HAVE_REMOTE */
32-
33 #ifdef __cplusplus
34 }
35 #endif
36
diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb b/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb
index e9db28a7d7..1893e675b2 100644
--- a/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb
+++ b/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb
@@ -4,6 +4,7 @@ SRC_URI += " \
4 file://libpcap-pkgconfig-support.patch \ 4 file://libpcap-pkgconfig-support.patch \
5 file://0001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch \ 5 file://0001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch \
6 file://0002-Add-missing-compiler_state_t-parameter.patch \ 6 file://0002-Add-missing-compiler_state_t-parameter.patch \
7 file://disable-remote.patch \
7" 8"
8 9
9SRC_URI[md5sum] = "3d48f9cd171ff12b0efd9134b52f1447" 10SRC_URI[md5sum] = "3d48f9cd171ff12b0efd9134b52f1447"