libpcap/disable-remote.diff
Tomáš Chvátal 79358d2d00 Accepting request 523827 from home:adra:branches:Base:System
Added a patch (disable-remote.diff) to fix applications to FTBFS if they define HAVE_REMOTE (deb#843384)

OBS-URL: https://build.opensuse.org/request/show/523827
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=59
2017-09-13 07:48:52 +00:00

30 lines
681 B
Diff

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