]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Include pcap-missing.h, to get the declaration of pcap_datalink_val_to_name().
authorGuy Harris <[email protected]>
Sun, 29 Jul 2018 22:08:16 +0000 (15:08 -0700)
committerGuy Harris <[email protected]>
Sun, 29 Jul 2018 22:08:16 +0000 (15:08 -0700)
If we're building with an old version of libpcap that doesn't include
pcap_datalink_val_to_name(), we incorporate our own version, but we need
to have it declared before we use it.

print.c

diff --git a/print.c b/print.c
index 4cc35bab980d0789cf3f101aee1ef036b7115982..7460b777035e5efe79111f9e2234c1621622e9fb 100644 (file)
--- a/print.c
+++ b/print.c
@@ -39,6 +39,8 @@
 #include "print.h"
 #include "netdissect-alloc.h"
 
+#include "pcap-missing.h"
+
 struct printer {
        if_printer f;
        int type;