summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap/pcap-int.h
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-03-31 18:14:27 +0000
committerbms <bms@FreeBSD.org>2004-03-31 18:14:27 +0000
commit444a7b254995bdf3dc81328b0c41fdb864b96f1a (patch)
tree5ba49a326f344b680892d02c646b6d60b696142e /contrib/libpcap/pcap-int.h
parentb8b283bcbb41492c1af19e50fe2dc2d5d8eee0b5 (diff)
downloadFreeBSD-src-444a7b254995bdf3dc81328b0c41fdb864b96f1a.zip
FreeBSD-src-444a7b254995bdf3dc81328b0c41fdb864b96f1a.tar.gz
snprintf() and vsnprintf() are part of our base system libc, therefore
pcap should not fall back to its own implementations in the absence of HAVE_SNPRINTF and HAVE_VSNPRINTF defines when compiled and installed as part of the world. This should fix builds of pflogd and packages depending on the base system libpcap. Reported by: Andrzej Tobola
Diffstat (limited to 'contrib/libpcap/pcap-int.h')
-rw-r--r--contrib/libpcap/pcap-int.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/contrib/libpcap/pcap-int.h b/contrib/libpcap/pcap-int.h
index 4a5a288..b92a4be 100644
--- a/contrib/libpcap/pcap-int.h
+++ b/contrib/libpcap/pcap-int.h
@@ -240,16 +240,6 @@ int pcap_read(pcap_t *, int cnt, pcap_handler, u_char *);
#include <stdarg.h>
-#if !defined(HAVE_SNPRINTF)
-#define snprintf pcap_snprintf
-extern int snprintf (char *, size_t, const char *, ...);
-#endif
-
-#if !defined(HAVE_VSNPRINTF)
-#define vsnprintf pcap_vsnprintf
-extern int vsnprintf (char *, size_t, const char *, va_list ap);
-#endif
-
/*
* Routines that most pcap implementations can use for non-blocking mode.
*/
OpenPOWER on IntegriCloud