[rtems commit] record: Fix configuration

Sebastian Huber sebh at rtems.org
Sat Feb 1 13:58:05 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep 24 15:51:53 2019 +0200

record: Fix configuration

---

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

diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h
index 76e2167..c044f48 100644
--- a/cpukit/include/rtems/confdefs.h
+++ b/cpukit/include/rtems/confdefs.h
@@ -2093,9 +2093,13 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
  */
 
 #ifdef CONFIGURE_INIT
+#if CONFIGURE_RECORD_PER_PROCESSOR_ITEMS > 0
+#include <rtems/record.h>
+#endif
 #ifdef CONFIGURE_STACK_CHECKER_ENABLED
 #include <rtems/stackchk.h>
 #endif
+
 #include <rtems/libcsupport.h>
 
 #if defined(BSP_INITIAL_EXTENSION) || \
@@ -2830,8 +2834,6 @@ struct _reent *__getreent(void)
   };
 
   #if CONFIGURE_RECORD_PER_PROCESSOR_ITEMS > 0
-    #include <rtems/record.h>
-
     #if (CONFIGURE_RECORD_PER_PROCESSOR_ITEMS & (CONFIGURE_RECORD_PER_PROCESSOR_ITEMS - 1)) != 0
       #error "CONFIGURE_RECORD_PER_PROCESSOR_ITEMS must be a power of two"
     #endif



More information about the vc mailing list