From 6b89856c15761e24a84b8e85420047fda0322b16 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 29 Jun 2009 00:50:19 -0700 Subject: [PATCH] Don't define pcap_stream_err() if we're not going to use it. --- dlpisubs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlpisubs.c b/dlpisubs.c index 332cdaf..23c78ce 100644 --- a/dlpisubs.c +++ b/dlpisubs.c @@ -69,7 +69,9 @@ static const char rcsid[] _U_ = #include "pcap-int.h" #include "dlpisubs.h" +#ifdef HAVE_SYS_BUFMOD_H static void pcap_stream_err(const char *, int, char *); +#endif /* * Get the packet statistics. @@ -344,6 +346,7 @@ strioctl(int fd, int cmd, int len, char *dp) return (str.ic_len); } +#ifdef HAVE_SYS_BUFMOD_H /* * Write stream error message to errbuf. */ @@ -352,3 +355,4 @@ pcap_stream_err(const char *func, int err, char *errbuf) { snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", func, pcap_strerror(err)); } +#endif