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