disable-remote.diff 681 B

123456789101112131415161718192021222324252627282930
  1. Disable bits of remote capture support inherited from the WinPCAP merge
  2. which cause applications to FTBFS if they define HAVE_REMOTE (#843384).
  3. --- a/pcap/pcap.h
  4. +++ b/pcap/pcap.h
  5. @@ -506,6 +506,11 @@
  6. #define MODE_STAT 1
  7. #define MODE_MON 2
  8. +#ifdef HAVE_REMOTE
  9. + /* Includes most of the public stuff that is needed for the remote capture */
  10. + #include <remote-ext.h>
  11. +#endif /* HAVE_REMOTE */
  12. +
  13. #elif defined(MSDOS)
  14. /*
  15. @@ -526,11 +531,6 @@
  16. #endif /* _WIN32/MSDOS/UN*X */
  17. -#ifdef HAVE_REMOTE
  18. - /* Includes most of the public stuff that is needed for the remote capture */
  19. - #include <remote-ext.h>
  20. -#endif /* HAVE_REMOTE */
  21. -
  22. #ifdef __cplusplus
  23. }
  24. #endif