public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Sebastian Huber <sh@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] RTEMS: Avoid <machine/param.h> in <sys/_cpuset.h>
Date: Thu, 08 Nov 2018 13:07:00 -0000	[thread overview]
Message-ID: <20181108130719.81083.qmail@sourceware.org> (raw)

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);


                 reply	other threads:[~2018-11-08 13:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181108130719.81083.qmail@sourceware.org \
    --to=sh@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).