Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/rtems/include/sys/_cpuset.h')
-rw-r--r--newlib/libc/sys/rtems/include/sys/_cpuset.h7
1 files 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 83f654107..02e9ac387 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);