]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
On MacOS X 10.10, provide a dummy definition for voucher_mach_msg_set.
authorJulian Seward <jseward@acm.org>
Thu, 6 Nov 2014 20:20:01 +0000 (20:20 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 6 Nov 2014 20:20:01 +0000 (20:20 +0000)
Not sure why this is necessary, but without it, the tool executables
don't link.  Part of bug 339045.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14696

coregrind/m_main.c

index 935d43300183f25408de5a3d3735fddd267089ae..f26867f68aa9a87b83971f3b5e09e462bec53a9d 100644 (file)
@@ -3751,6 +3751,28 @@ __fixunsdfdi(double a)
 #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                                                          ---*/
 /*--------------------------------------------------------------------*/