summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_create.c')
-rw-r--r--lib/libthr/thread/thr_create.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c
index b35f6b7..bb5724a 100644
--- a/lib/libthr/thread/thr_create.c
+++ b/lib/libthr/thread/thr_create.c
@@ -27,6 +27,7 @@
* $FreeBSD$
*/
+#include "namespace.h"
#include <sys/types.h>
#include <sys/signalvar.h>
#include <errno.h>
@@ -34,6 +35,7 @@
#include <string.h>
#include <stddef.h>
#include <pthread.h>
+#include "un-namespace.h"
#include "thr_private.h"
@@ -242,7 +244,7 @@ thread_start(struct pthread *curthread)
THR_UNLOCK(curthread);
/* Run the current thread's start routine with argument: */
- pthread_exit(curthread->start_routine(curthread->arg));
+ _pthread_exit(curthread->start_routine(curthread->arg));
/* This point should never be reached. */
PANIC("Thread has resumed after exit");
OpenPOWER on IntegriCloud