From: Nick Clifton Date: Tue, 29 Jun 2004 09:53:50 +0000 (+0000) Subject: (pthread_join): Only apply the weak pragma if the function actually exists. X-Git-Tag: releases/gcc-4.0.0~7239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35a1e17e48db31480bc46a9787ad89a053628e08;p=thirdparty%2Fgcc.git (pthread_join): Only apply the weak pragma if the function actually exists. From-SVN: r83847 --- diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c index 8b1cc749c9e4..c1f0a6a48285 100644 --- a/libmudflap/mf-runtime.c +++ b/libmudflap/mf-runtime.c @@ -136,7 +136,11 @@ pthread_mutex_t __mf_biglock = the libmudflap.la (no threading support) can diagnose whether the application is linked with -lpthread. See __mf_usage() below. */ #if HAVE_PTHREAD_H +#ifdef _POSIX_THREADS #pragma weak pthread_join +#else +#define pthread_join NULL +#endif const void *threads_active_p = (void *) pthread_join; #endif