[rtems commit] score: Includes in <rtems/score/smplockstats.h>

Sebastian Huber sebh at rtems.org
Mon Nov 12 14:41:05 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Nov 12 09:24:28 2018 +0100

score: Includes in <rtems/score/smplockstats.h>

Include implementation header files only if necessary.

Update #3598.

---

 cpukit/include/rtems/score/smplockstats.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/include/rtems/score/smplockstats.h b/cpukit/include/rtems/score/smplockstats.h
index dd8e06c..4b30ce2 100644
--- a/cpukit/include/rtems/score/smplockstats.h
+++ b/cpukit/include/rtems/score/smplockstats.h
@@ -21,9 +21,11 @@
 
 #if defined(RTEMS_SMP)
 
+#if defined(RTEMS_PROFILING)
 #include <rtems/score/chainimpl.h>
 
 #include <stdint.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {



More information about the vc mailing list