summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--freebsd-userspace/local/pthread_np.h1
-rw-r--r--freebsd-userspace/rtems/rtems-uthread_main_np.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/freebsd-userspace/local/pthread_np.h b/freebsd-userspace/local/pthread_np.h
index fa882cb5..25bd4727 100644
--- a/freebsd-userspace/local/pthread_np.h
+++ b/freebsd-userspace/local/pthread_np.h
@@ -1 +1,2 @@
/* empty file */
+extern rtems_id rtems_init_task_id;
diff --git a/freebsd-userspace/rtems/rtems-uthread_main_np.c b/freebsd-userspace/rtems/rtems-uthread_main_np.c
index fa289007..2ce8dfdb 100644
--- a/freebsd-userspace/rtems/rtems-uthread_main_np.c
+++ b/freebsd-userspace/rtems/rtems-uthread_main_np.c
@@ -3,6 +3,7 @@
*/
#include <rtems.h>
+#include <pthread_np.h>
__weak_reference(_pthread_main_np, pthread_main_np);
@@ -12,9 +13,6 @@ __weak_reference(_pthread_main_np, pthread_main_np);
int
_pthread_main_np()
{
- /* Created and set in rtems_bsd_initialize */
- extern rtems_id rtems_init_task_id;
-
if ( rtems_init_task_id == rtems_task_self() )
return 1;
else