public inbox for newlib-cvs@sourceware.org
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

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1471e7cd744de06bef48f4ebbf52725ec93a0a1d

commit 1471e7cd744de06bef48f4ebbf52725ec93a0a1d
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
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 <sebastian.huber@embedded-brains.de>

Diff:
---
 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
-#define	CPU_SETSIZE	MAXCPU
+#ifdef __LONG_WIDTH__
+#define	CPU_SETSIZE	__LONG_WIDTH__
+#else
+#define	CPU_SETSIZE	32
+#endif
 #endif
 
 BITSET_DEFINE(_cpuset, CPU_SETSIZE);


^ 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).