diff --git a/freebsd/lib/libc/include/reentrant.h b/freebsd/lib/libc/include/reentrant.h index 22a2325d..5debcf1a 100644 --- a/freebsd/lib/libc/include/reentrant.h +++ b/freebsd/lib/libc/include/reentrant.h @@ -125,4 +125,8 @@ #define thr_once(o, i) _pthread_once(o, i) #define thr_self() _pthread_self() #define thr_exit(x) _pthread_exit(x) +#ifdef __rtems__ +#define thr_main() (0) +#else /* __rtems__ */ #define thr_main() _pthread_main_np() +#endif /* __rtems__ */