summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_resume_np.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_resume_np.c')
-rw-r--r--lib/libpthread/thread/thr_resume_np.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_resume_np.c b/lib/libpthread/thread/thr_resume_np.c
index 32b3d05..0d4738d 100644
--- a/lib/libpthread/thread/thr_resume_np.c
+++ b/lib/libpthread/thread/thr_resume_np.c
@@ -32,13 +32,14 @@
* $FreeBSD$
*/
#include <errno.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak pthread_resume_np=_pthread_resume_np
+
/* Resume a thread: */
int
-pthread_resume_np(pthread_t thread)
+_pthread_resume_np(pthread_t thread)
{
int ret;
enum pthread_susp old_suspended;
@@ -89,4 +90,3 @@ pthread_resume_np(pthread_t thread)
}
return(ret);
}
-#endif
OpenPOWER on IntegriCloud