X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7885cfa165458a05ef818c34ee03affc79f03725..86bed03b4740e542339f45dba70a556bb8433758:/interface.h diff --git a/interface.h b/interface.h index d54172ee..b129312a 100644 --- a/interface.h +++ b/interface.h @@ -41,10 +41,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 +53,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) && HAVE_CAPSICUM && !defined(bpf_dump)) extern void bpf_dump(const struct bpf_program *, int); #endif