From 7dbbb8c57285cfffcb87a38c73ce1c4f8146b0c1 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 6 May 2010 23:33:41 +0000 Subject: Just check for pcap_create(); it first appeared in libpcap 1.0.0, and pcap_set_buffer_size() did as well, so there aren't any libpcap releases with pcap_create() but not pcap_set_buffer_size(). Only do one check for pcap_create. svn path=/trunk/; revision=32695 --- capture_opts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capture_opts.h') diff --git a/capture_opts.h b/capture_opts.h index 507ced2926..fa9bf6d641 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -105,7 +105,7 @@ typedef struct capture_options_tag { int sampling_param; /**< PCAP packet sampling parameter */ #endif #endif -#if defined(_WIN32) || defined(HAVE_PCAP_SET_BUFFER_SIZE) +#if defined(_WIN32) || defined(HAVE_PCAP_CREATE) int buffer_size; /**< the capture buffer size (MB) */ #endif gboolean has_snaplen; /**< TRUE if maximum capture packet length -- cgit v1.2.1