From 26443da46ccd16d439680f63466dfe09234807e5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 24 Sep 2019 15:51:53 +0200 Subject: [PATCH] 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 76e2167e01..c044f4842c 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 +#endif #ifdef CONFIGURE_STACK_CHECKER_ENABLED #include #endif + #include #if defined(BSP_INITIAL_EXTENSION) || \ @@ -2830,8 +2834,6 @@ struct _reent *__getreent(void) }; #if CONFIGURE_RECORD_PER_PROCESSOR_ITEMS > 0 - #include - #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