]> The Tcpdump Group git mirrors - tcpdump/blobdiff - interface.h
Makefile.in: don't remove configure and config.h.in in make distclean.
[tcpdump] / interface.h
index 8927a19bad22213e59fb298244b5c19aa1ff9fa2..58e5ab33e51f4a0b1878929fa4cfcaf9ccb6bba5 100644 (file)
@@ -28,8 +28,6 @@
 
 #include "funcattrs.h"
 
-/* snprintf et al */
-
 #include <stdarg.h>
 
 #if HAVE_STDINT_H
@@ -59,7 +57,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