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>
This commit is contained in:
Sebastian Huber 2018-11-08 09:33:13 +01:00
parent d80db60066
commit 1471e7cd74
1 changed files with 5 additions and 2 deletions

View File

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