libpcap-1.0.0-wireless.patch 788 B

1234567891011121314151617181920212223242526
  1. [PATCH]: pcap-linux: fix build with wireless support
  2. Based on ba23aa7b upstream.
  3. linux/wireless.h includes linux/if.h, which conflicts with net/if.h as
  4. they both define if* structures. Fix build by simply using linux/if.h
  5. instead of net/if.h.
  6. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  7. ---
  8. pcap-linux.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. Index: libpcap-1.0.0/pcap-linux.c
  11. ===================================================================
  12. --- libpcap-1.0.0.orig/pcap-linux.c
  13. +++ libpcap-1.0.0/pcap-linux.c
  14. @@ -93,7 +93,7 @@ static const char rcsid[] _U_ =
  15. #include <sys/ioctl.h>
  16. #include <sys/utsname.h>
  17. #include <sys/mman.h>
  18. -#include <net/if.h>
  19. +#include <linux/if.h>
  20. #include <netinet/in.h>
  21. #include <linux/if_ether.h>
  22. #include <net/if_arp.h>