X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b3703ed9cfac43b0026fc2e2013e1612edad4300..refs/heads/master:/interface.h diff --git a/interface.h b/interface.h index 8927a19b..affa019c 100644 --- a/interface.h +++ b/interface.h @@ -28,13 +28,8 @@ #include "funcattrs.h" -/* snprintf et al */ - #include - -#if HAVE_STDINT_H #include -#endif #ifndef HAVE_STRLCAT extern size_t strlcat(char *, const char *, size_t); @@ -43,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 @@ -59,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