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
This commit is contained in:
Bruce M Simpson 2004-03-31 18:14:27 +00:00
parent 63600cc345
commit 2a5eb7e1d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127682

View File

@ -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.
*/