From 5851034aea35f08cff4d0d0e5cb44cb456144094 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 15 Jun 2016 07:49:24 +0200 Subject: reentrant.h: There is no main thread in RTEMS --- freebsd/lib/libc/include/reentrant.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'freebsd/lib') 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__ */ -- cgit v1.2.3