[rtems-libbsd commit] reentrant.h: There is no main thread in RTEMS

Sebastian Huber sebh at rtems.org
Wed Jun 15 05:50:01 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    5851034aea35f08cff4d0d0e5cb44cb456144094
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=5851034aea35f08cff4d0d0e5cb44cb456144094

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jun 15 07:49:24 2016 +0200

reentrant.h: There is no main thread in RTEMS

---

 freebsd/lib/libc/include/reentrant.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/freebsd/lib/libc/include/reentrant.h b/freebsd/lib/libc/include/reentrant.h
index 22a2325..5debcf1 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__ */



More information about the vc mailing list