X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/59b9406a4587311dc04d516059573ae369afee8b..87889ba67add1e8abd77fdaacbfd831ee9335bcc:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index 2ec7d200..d77b4bda 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -77,12 +77,10 @@ extern int SIZE_BUF; #else #include "getopt_long.h" #endif -#include -#include -#include -#include -#include -#include +/* Capsicum-specific code requires macros from , which will fail + * to compile if has already been included; including the headers + * in the opposite order works fine. + */ #ifdef HAVE_CAPSICUM #include #include @@ -90,6 +88,12 @@ extern int SIZE_BUF; #include #include #endif /* HAVE_CAPSICUM */ +#include +#include +#include +#include +#include +#include #ifndef WIN32 #include #include @@ -2429,7 +2433,7 @@ print_packet(u_char *user, const struct pcap_pkthdr *h, const u_char *sp) static void ndo_default_print(netdissect_options *ndo, const u_char *bp, u_int length) { - hex_and_ascii_print(ndo, "\n\t", bp, length); /* pass on lf and identation string */ + hex_and_ascii_print(ndo, "\n\t", bp, length); /* pass on lf and indentation string */ } void