public inbox for
help / color / mirror / Atom feed
* [newlib-cygwin] RTEMS: Avoid <machine/param.h> in <sys/_cpuset.h>
@ 2018-11-08 13:07 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2018-11-08 13:07 UTC (permalink / raw)
  To: newlib-cvs;h=1471e7cd744de06bef48f4ebbf52725ec93a0a1d

commit 1471e7cd744de06bef48f4ebbf52725ec93a0a1d
Author: Sebastian Huber <>
Date:   Thu Nov 8 09:33:13 2018 +0100

    RTEMS: Avoid <machine/param.h> in <sys/_cpuset.h>
    The <machine/param.h> header file exposes some unrelated stuff not
    covered by C or POSIX.  Avoid its use in <sys/_cpuset.h> since it is
    included in <rtems.h>.
    Signed-off-by: Sebastian Huber <>

 newlib/libc/sys/rtems/include/sys/_cpuset.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/sys/rtems/include/sys/_cpuset.h b/newlib/libc/sys/rtems/include/sys/_cpuset.h
index 83f6541..02e9ac3 100644
--- a/newlib/libc/sys/rtems/include/sys/_cpuset.h
+++ b/newlib/libc/sys/rtems/include/sys/_cpuset.h
@@ -35,12 +35,15 @@
 #define	_SYS__CPUSET_H_
 #include <sys/_bitset.h>
-#include <machine/param.h>
 #define	CPU_MAXSIZE	256
 #ifndef	CPU_SETSIZE
+#ifdef __LONG_WIDTH__
+#define	CPU_SETSIZE	32

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-08 13:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 13:07 [newlib-cygwin] RTEMS: Avoid <machine/param.h> in <sys/_cpuset.h> Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).