Cope with newer Xcode not having the 10.6 SDK.
authorGuy Harris <guy@alum.mit.edu>
Wed, 5 Nov 2014 01:49:29 +0000 (17:49 -0800)
committerGuy Harris <guy@alum.mit.edu>
Wed, 5 Nov 2014 01:50:00 +0000 (01:50 +0000)
commit78492d9dd21e3567a12f210ab4b3c79a66feea65
treeb02cf18448957a501394817336ea58a91c8ed5fa
parent196d7b433096b84f18f8d034d8d20298f2b9c3f2
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>
caputils/capture-pcap-util-unix.c
caputils/capture-pcap-util.h
dumpcap.c