From 8777ff1304fd7c07f35a7aca655b92d0e98a277b Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 25 Jul 2018 20:24:34 -0500 Subject: [PATCH] Fix compile errors related to errno.h Because errno.h is defined in terms of a syscall we can get into trouble when one syscall/ ends up include another syscall/. Moving errno.h from kernel_includes.h to kernel.h breaks the possible inclusion issue on some ARM platforms (which arm_mpu.h ends up include soc.h which ends up include kernel_includes.h which would include errno.h). Signed-off-by: Kumar Gala --- include/kernel.h | 1 + include/kernel_includes.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/kernel.h b/include/kernel.h index c6e6a0b238b..ae8e8e6b719 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -15,6 +15,7 @@ #if !defined(_ASMLANGUAGE) #include +#include #ifdef __cplusplus extern "C" { diff --git a/include/kernel_includes.h b/include/kernel_includes.h index 0b196030a40..df609865c75 100644 --- a/include/kernel_includes.h +++ b/include/kernel_includes.h @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include