aboutsummaryrefslogtreecommitdiffstats
path: root/caputils
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-06 21:28:35 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-07 05:29:05 +0000
commit88b6c768b50e5aabca9dd105dd4219dda4872d41 (patch)
treedb571b76bdf0105db1db39e37d66cfa479557465 /caputils
parent949b9ba75533355376f06ebdb6027a660e4f1a6f (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'caputils')
-rw-r--r--caputils/capture-pcap-util.h6
1 files changed, 3 insertions, 3 deletions
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);
/*