summaryrefslogtreecommitdiff
path: root/caputils/capture-pcap-util.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-04 17:49:29 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-05 01:50:00 +0000
commit78492d9dd21e3567a12f210ab4b3c79a66feea65 (patch)
treeb02cf18448957a501394817336ea58a91c8ed5fa /caputils/capture-pcap-util.h
parent196d7b433096b84f18f8d034d8d20298f2b9c3f2 (diff)
downloadwireshark-78492d9dd21e3567a12f210ab4b3c79a66feea65.tar.gz
Cope with newer Xcode not having the 10.6 SDK.
The latest Xcode, as of today, has only 10.9 and 10.10 SDKs, which means that, if we build Wireshark and request a deployment minimum release of 10.6, we'll be building against an SDK in which libpcap has routines that aren't available in 10.6 and that doesn't use weak linking for them, so the resulting binary won't actually work on 10.6. Use the run-time loader to find those routines (currently, only pcap_set_tstamp_precision()) and call them only if we find them. On other UN*Xes, we still assume that we'll be running only on the release against which we were built and newer releases. Change-Id: Iab20d86fe3be4b299cfb6e25c1f95dc6e1581661 Reviewed-on: https://code.wireshark.org/review/5120 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'caputils/capture-pcap-util.h')
-rw-r--r--caputils/capture-pcap-util.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/caputils/capture-pcap-util.h b/caputils/capture-pcap-util.h
index 617bcc82e5..079e3fabd7 100644
--- a/caputils/capture-pcap-util.h
+++ b/caputils/capture-pcap-util.h
@@ -50,12 +50,16 @@ GList *get_remote_interface_list(const char *hostname, const char *port,
const char *linktype_val_to_name(int dlt);
int linktype_name_to_val(const char *linktype);
-#endif /* HAVE_LIBPCAP */
-
+#ifdef HAVE_PCAP_SET_TSTAMP_PRECISION
/*
* Get the versions of capture libraries with which we were compiled,
* and append them to a GString.
*/
+void request_high_resolution_timestamp(pcap_t *pcap_h);
+#endif /* HAVE_PCAP_SET_TSTAMP_PRECISION */
+
+#endif /* HAVE_LIBPCAP */
+
extern void get_compiled_caplibs_version(GString *str);
/*