summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_create.c')
-rw-r--r--lib/libkse/thread/thr_create.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_create.c b/lib/libkse/thread/thr_create.c
index f4bd4758..e699b74 100644
--- a/lib/libkse/thread/thr_create.c
+++ b/lib/libkse/thread/thr_create.c
@@ -29,6 +29,8 @@
*
* $FreeBSD$
*/
+
+#include "namespace.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
@@ -38,6 +40,7 @@
#include <sys/time.h>
#include <machine/reg.h>
#include <pthread.h>
+#include "un-namespace.h"
#include "thr_private.h"
#include "libc_private.h"
@@ -334,11 +337,11 @@ free_stack(struct pthread_attr *pattr)
}
static void
-thread_start(struct pthread *curthread, void *(*start_routine) (void *),
+thread_start(struct pthread *curthread __unused, void *(*start_routine) (void *),
void *arg)
{
/* Run the current thread's start routine with argument: */
- pthread_exit(start_routine(arg));
+ _pthread_exit(start_routine(arg));
/* This point should never be reached. */
PANIC("Thread has resumed after exit");
OpenPOWER on IntegriCloud