diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-08 11:33:13 +0300 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-08 11:38:12 +0300 |
commit | 1471e7cd744de06bef48f4ebbf52725ec93a0a1d (patch) | |
tree | c8d2537a592676abc7eed84e30aa163b2e53802b /newlib/libc/sys | |
parent | d80db600664bec381230be85955b54884f21a619 (diff) |
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>
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r-- | newlib/libc/sys/rtems/include/sys/_cpuset.h | 7 |
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); |