X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c499612a7f1024a183d0200ef5f1ea7fba63a3e4..ddb4a4ac5ed309fe37f307240cacf384b1f14a51:/interface.h diff --git a/interface.h b/interface.h index d54172ee..affa019c 100644 --- a/interface.h +++ b/interface.h @@ -29,10 +29,7 @@ #include "funcattrs.h" #include - -#if HAVE_STDINT_H #include -#endif #ifndef HAVE_STRLCAT extern size_t strlcat(char *, const char *, size_t); @@ -41,10 +38,6 @@ extern size_t strlcat(char *, const char *, size_t); extern size_t strlcpy(char *, const char *, size_t); #endif -#ifndef HAVE_STRDUP -extern char *strdup(const char *); -#endif - #ifndef HAVE_STRSEP extern char *strsep(char **, const char *); #endif @@ -57,7 +50,13 @@ extern char *program_name; /* used to generate self-identifying messages */ #ifndef HAVE_BPF_DUMP struct bpf_program; +#endif +/* + * With Capsicum bpf_dump() may be not declared even if HAVE_BPF_DUMP is set. + */ +#if !defined(HAVE_BPF_DUMP) || \ + (defined(HAVE_BPF_DUMP) && defined(HAVE_CAPSICUM) && !defined(bpf_dump)) extern void bpf_dump(const struct bpf_program *, int); #endif