From: Julian Seward Date: Thu, 6 Nov 2014 20:20:01 +0000 (+0000) Subject: On MacOS X 10.10, provide a dummy definition for voucher_mach_msg_set. X-Git-Tag: svn/VALGRIND_3_11_0~852 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba74ff23024d16b6e628613d43b457218c004634;p=thirdparty%2Fvalgrind.git 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14696 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 935d433001..f26867f68a 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -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 ---*/ /*--------------------------------------------------------------------*/