aboutsummaryrefslogtreecommitdiffstats
path: root/cmakeconfig.h.in
diff options
context:
space:
mode:
authorDavid Ameiss <netshark@ameissnet.com>2014-11-10 14:24:18 -0600
committerStig Bjørlykke <stig@bjorlykke.org>2014-11-10 22:03:26 +0000
commitafae2b64e2aab4d63ccef3c652507e747594ea93 (patch)
tree4f237286a5d8828abcb58c62b2650fb38729026e /cmakeconfig.h.in
parentc44ff776c4d270a8ae1d2fea39eae8c0a14d9dd9 (diff)
Allow building under OSX Yosemite using cmake.
CFPropertyListCreateFromStream() has been deprecated in Yosemite, in favor of CFPropertyListCreateWithStream(). The autotools build checks for the existence of the new function, but the cmake build does not. So, add a check for it to CMakeLists.txt, and update cmakeconfig.h.in to provide the "template" for HAVE_CFPROPERTYLISTCREATEWITHSTREAM. Change-Id: I1a4e3e1ce83092ecf7725527b921eeca80b18d4b Note: CFPropertyListCreateWithStream() works under Mavericks as well. Reviewed-on: https://code.wireshark.org/review/5226 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'cmakeconfig.h.in')
-rw-r--r--cmakeconfig.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in
index 326818e086..7f1c91a5c9 100644
--- a/cmakeconfig.h.in
+++ b/cmakeconfig.h.in
@@ -183,6 +183,9 @@
/* Define to 1 if you have OS X frameworks */
#cmakedefine HAVE_OS_X_FRAMEWORKS 1
+/* Define to 1 if you have the OS X CFPropertyListCreateWithStream function */
+#cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
+
/* Define if pcap_breakloop is known */
#cmakedefine HAVE_PCAP_BREAKLOOP 1