summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_single_np.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_single_np.c')
-rw-r--r--lib/libthr/thread/thr_single_np.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_single_np.c b/lib/libthr/thread/thr_single_np.c
index c8e5a94..c74fc55 100644
--- a/lib/libthr/thread/thr_single_np.c
+++ b/lib/libthr/thread/thr_single_np.c
@@ -32,8 +32,10 @@
* $FreeBSD$
*/
+#include "namespace.h"
#include <pthread.h>
#include <pthread_np.h>
+#include "un-namespace.h"
__weak_reference(_pthread_single_np, pthread_single_np);
@@ -41,7 +43,7 @@ int _pthread_single_np()
{
/* Enter single-threaded (non-POSIX) scheduling mode: */
- pthread_suspend_all_np();
+ _pthread_suspend_all_np();
/*
* XXX - Do we want to do this?
* __is_threaded = 0;
OpenPOWER on IntegriCloud