aboutsummaryrefslogtreecommitdiffstats
path: root/capture
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-02-06 11:04:13 +0000
committerJoão Valverde <j@v6e.pt>2023-02-06 15:05:36 +0000
commit71cfbd81b33685eddde52fbaf12fd0ddced53f79 (patch)
treebd35f0e70adc462992b8abce1ddf713455eae282 /capture
parentab0d1904501e0f2daf50371ecba49a2e6e9a7d5f (diff)
Remove wspcap.h and use config.h instead
Forcing the use of a dedicated header to replace pcap.h is unnecessary code and mental overhead in this case. We can use config.h instead for the same purpose of defining a macro symbol before including pcap.h.
Diffstat (limited to 'capture')
-rw-r--r--capture/capture-pcap-util-unix.c2
-rw-r--r--capture/capture-pcap-util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/capture/capture-pcap-util-unix.c b/capture/capture-pcap-util-unix.c
index ecb1d22db9..5e4bdaab67 100644
--- a/capture/capture-pcap-util-unix.c
+++ b/capture/capture-pcap-util-unix.c
@@ -18,7 +18,7 @@
#ifdef HAVE_LIBPCAP
-#include "wspcap.h"
+#include <pcap.h>
#ifdef HAVE_LIBCAP
# include <sys/capability.h>
diff --git a/capture/capture-pcap-util.h b/capture/capture-pcap-util.h
index c6cbb87f17..94640a8ee6 100644
--- a/capture/capture-pcap-util.h
+++ b/capture/capture-pcap-util.h
@@ -16,7 +16,7 @@
#ifdef HAVE_LIBPCAP
-#include "wspcap.h"
+#include <pcap.h>
#include "capture_opts.h"