From 88b6c768b50e5aabca9dd105dd4219dda4872d41 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 6 Jan 2016 21:28:35 -0800 Subject: Don't declare libpcap wrappers if we're not building with libpcap. Few of these functions exist if we're not building with libpcap. Change-Id: Icead80bc1993a229341fb4fcba6f1e5901c610ee Reviewed-on: https://code.wireshark.org/review/13097 Reviewed-by: Guy Harris --- caputils/capture-pcap-util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'caputils') diff --git a/caputils/capture-pcap-util.h b/caputils/capture-pcap-util.h index 1eaad35e5c..a5c3825900 100644 --- a/caputils/capture-pcap-util.h +++ b/caputils/capture-pcap-util.h @@ -47,7 +47,7 @@ GList *get_interface_list(int *err, char **err_str); GList *get_remote_interface_list(const char *hostname, const char *port, int auth_type, const char *username, const char *passwd, int *err, char **err_str); -#endif +#endif /* HAVE_PCAP_REMOTE */ const char *linktype_val_to_name(int dlt); int linktype_name_to_val(const char *linktype); @@ -66,14 +66,14 @@ gboolean set_pcap_datalink(pcap_t *pcap_h, int datalink, char *name, gboolean have_high_resolution_timestamp(pcap_t *pcap_h); #endif /* HAVE_PCAP_SET_TSTAMP_PRECISION */ -#endif /* HAVE_LIBPCAP */ - extern if_capabilities_t *get_if_capabilities(interface_options *interface_opts, char **err_str); extern pcap_t *open_capture_device(capture_options *capture_opts, interface_options *interface_opts, int timeout, char (*open_err_str)[PCAP_ERRBUF_SIZE]); +#endif /* HAVE_LIBPCAP */ + extern void get_compiled_caplibs_version(GString *str); /* -- cgit v1.2.1