|
From: <sv...@va...> - 2014-11-06 20:20:09
|
Author: sewardj
Date: Thu Nov 6 20:20:01 2014
New Revision: 14696
Log:
On MacOS X 10.10, provide a dummy definition for voucher_mach_msg_set.
Not sure why this is necessary, but without it, the tool executables
don't link. Part of bug 339045.
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
==============================================================================
--- trunk/coregrind/m_main.c (original)
+++ trunk/coregrind/m_main.c Thu Nov 6 20:20:01 2014
@@ -3751,6 +3751,28 @@
#endif
+/*====================================================================*/
+/*=== Dummy _voucher_mach_msg_set for OSX 10.10 ===*/
+/*====================================================================*/
+
+#if defined(VGO_darwin) && DARWIN_VERS == DARWIN_10_10
+
+/* Builds on MacOSX 10.10 seem to need this for some reason. */
+/* extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg)
+ __attribute__((weak_import));
+ I haven't a clue what the return value means, so just return 0.
+ Looks like none of the generated uses in the tree look at the
+ return value anyway.
+*/
+UWord voucher_mach_msg_set ( UWord arg1 );
+UWord voucher_mach_msg_set ( UWord arg1 )
+{
+ return 0;
+}
+
+#endif
+
+
/*--------------------------------------------------------------------*/
/*--- end ---*/
/*--------------------------------------------------------------------*/
|