Commit 35a1e17e by Nick Clifton

(pthread_join): Only apply the weak pragma if the function actually exists.

From-SVN: r83847
parent 1eaba2f2
...@@ -136,7 +136,11 @@ pthread_mutex_t __mf_biglock = ...@@ -136,7 +136,11 @@ pthread_mutex_t __mf_biglock =
the libmudflap.la (no threading support) can diagnose whether the libmudflap.la (no threading support) can diagnose whether
the application is linked with -lpthread. See __mf_usage() below. */ the application is linked with -lpthread. See __mf_usage() below. */
#if HAVE_PTHREAD_H #if HAVE_PTHREAD_H
#ifdef _POSIX_THREADS
#pragma weak pthread_join #pragma weak pthread_join
#else
#define pthread_join NULL
#endif
const void *threads_active_p = (void *) pthread_join; const void *threads_active_p = (void *) pthread_join;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment