diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-02-06 12:51:01 -0600 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-03-07 09:07:17 -0600 |
commit | 13ab94be6ce3130c55ebb57fa96406d6b6e8c2b8 (patch) | |
tree | 387a67898a057c29f68dd65629c248a56521d243 /testsuites/sptests/spcpuset01/system.h | |
parent | smptests: Delete config.h.in (diff) | |
download | rtems-13ab94be6ce3130c55ebb57fa96406d6b6e8c2b8.tar.bz2 |
spcpuset01: Add check for sys/cpuset.h.
If <sys/cpuset.h> is not provided by the toolset, the test
cannot be compiled.
Diffstat (limited to 'testsuites/sptests/spcpuset01/system.h')
-rw-r--r-- | testsuites/sptests/spcpuset01/system.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/testsuites/sptests/spcpuset01/system.h b/testsuites/sptests/spcpuset01/system.h index cc3359fb15..0019abd95a 100644 --- a/testsuites/sptests/spcpuset01/system.h +++ b/testsuites/sptests/spcpuset01/system.h @@ -9,18 +9,22 @@ #include "tmacros.h" #include "test_support.h" -#include <sys/cpuset.h> -/* functions */ +#if defined(__RTEMS_HAVE_SYS_CPUSET_H__) -rtems_task Init( - rtems_task_argument argument -); +#include <sys/cpuset.h> /* global variables */ extern cpu_set_t set1; extern cpu_set_t set2; extern cpu_set_t set3; +#endif + +/* functions */ + +rtems_task Init( + rtems_task_argument argument +); void cpuset_logic_test(void); |