OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
856 B

  1. diff -ruN packit-1.0-orig/src/globals.h packit-1.0/src/globals.h
  2. --- packit-1.0-orig/src/globals.h 2003-10-03 11:52:08.000000000 +0200
  3. +++ packit-1.0/src/globals.h 2007-09-18 13:04:41.000000000 +0200
  4. @@ -31,7 +31,13 @@
  5. #include <libnet.h>
  6. #include <pcap.h>
  7. #include <sys/types.h>
  8. +
  9. +#ifdef HAVE_BPF
  10. #include <net/bpf.h>
  11. +#elif HAVE_PCAP
  12. +#include <pcap-bpf.h>
  13. +#endif
  14. +
  15. #include <signal.h>
  16. #include <time.h>
  17. #include <stdio.h>
  18. diff -ruN packit-1.0-orig/src/main.h packit-1.0/src/main.h
  19. --- packit-1.0-orig/src/main.h 2003-09-27 16:22:52.000000000 +0200
  20. +++ packit-1.0/src/main.h 2007-09-18 13:05:00.000000000 +0200
  21. @@ -26,7 +26,13 @@
  22. #include <libnet.h>
  23. #include <pcap.h>
  24. #include <sys/types.h>
  25. +
  26. +#ifdef HAVE_BPF
  27. #include <net/bpf.h>
  28. +#elif HAVE_PCAP
  29. +#include <pcap-bpf.h>
  30. +#endif
  31. +
  32. #include <signal.h>
  33. #include <time.h>
  34. #include <stdio.h>