[rtems commit] Include missing <sys/cpuset.h>

Sebastian Huber sebh at rtems.org
Wed Nov 14 06:24:24 UTC 2018


Module:    rtems
Branch:    master
Commit:    dc563556339caa13b6579dce93f7981ff414a40f
Changeset: http://git.rtems.org/rtems/commit/?id=dc563556339caa13b6579dce93f7981ff414a40f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Nov 14 07:23:21 2018 +0100

Include missing <sys/cpuset.h>

Update #3598.

---

 cpukit/include/rtems/rtems/cache.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/cpukit/include/rtems/rtems/cache.h b/cpukit/include/rtems/rtems/cache.h
index 6d6c935..16157b2 100644
--- a/cpukit/include/rtems/rtems/cache.h
+++ b/cpukit/include/rtems/rtems/cache.h
@@ -15,12 +15,16 @@
 #ifndef _RTEMS_RTEMS_CACHE_H
 #define _RTEMS_RTEMS_CACHE_H
 
+#include <rtems/score/basedefs.h>
+
+#if defined( RTEMS_SMP )
+#include <sys/cpuset.h>
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#include <rtems/score/basedefs.h>
-
 /**
  * @defgroup ClassicCache Cache
  *



More information about the vc mailing list