This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Declare GNU-specific sched_getcpu()
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Tue, 7 Aug 2018 13:49:52 +0200
- Subject: [PATCH] Declare GNU-specific sched_getcpu()
This is a glibc extension.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/include/sched.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/newlib/libc/include/sched.h b/newlib/libc/include/sched.h
index 504ad5274..1016235bb 100644
--- a/newlib/libc/include/sched.h
+++ b/newlib/libc/include/sched.h
@@ -90,6 +90,10 @@ int sched_yield( void );
#endif /* _POSIX_THREADS or _POSIX_PRIORITY_SCHEDULING */
+#if __GNU_VISIBLE
+int sched_getcpu(void);
+#endif
+
#ifdef __cplusplus
}
#endif
--
2.13.7