rtems-uthread_main_np.c: Moved rtems_init_task_id extern to pthread_np.h.

This commit is contained in:
Jennifer Averett 2012-10-08 09:48:41 -05:00
parent 3ac9bb177e
commit 24ddf77f01
2 changed files with 2 additions and 3 deletions

View File

@ -1 +1,2 @@
/* empty file */ /* empty file */
extern rtems_id rtems_init_task_id;

View File

@ -3,6 +3,7 @@
*/ */
#include <rtems.h> #include <rtems.h>
#include <pthread_np.h>
__weak_reference(_pthread_main_np, pthread_main_np); __weak_reference(_pthread_main_np, pthread_main_np);
@ -12,9 +13,6 @@ __weak_reference(_pthread_main_np, pthread_main_np);
int int
_pthread_main_np() _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() ) if ( rtems_init_task_id == rtems_task_self() )
return 1; return 1;
else else