summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_main_np.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_main_np.c')
-rw-r--r--lib/libthr/thread/thr_main_np.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_main_np.c b/lib/libthr/thread/thr_main_np.c
index 6b4626e..bfa8b87 100644
--- a/lib/libthr/thread/thr_main_np.c
+++ b/lib/libthr/thread/thr_main_np.c
@@ -27,8 +27,10 @@
* $FreeBSD$
*/
+#include "namespace.h"
#include <pthread.h>
#include <pthread_np.h>
+#include "un-namespace.h"
#include "thr_private.h"
@@ -44,5 +46,5 @@ _pthread_main_np()
if (!_thr_initial)
return (-1);
else
- return (pthread_equal(pthread_self(), _thr_initial) ? 1 : 0);
+ return (_pthread_equal(_pthread_self(), _thr_initial) ? 1 : 0);
}
OpenPOWER on IntegriCloud