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/<FOO.h> ends up include another syscall/<BAR.h>.

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 <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-07-25 20:24:34 -05:00 committed by Anas Nashif
parent 97c06a7ab3
commit 8777ff1304
2 changed files with 1 additions and 1 deletions

View file

@ -15,6 +15,7 @@
#if !defined(_ASMLANGUAGE)
#include <kernel_includes.h>
#include <errno.h>
#ifdef __cplusplus
extern "C" {

View file

@ -19,7 +19,6 @@
#include <toolchain.h>
#include <linker/sections.h>
#include <atomic.h>
#include <errno.h>
#include <misc/__assert.h>
#include <sched_priq.h>
#include <misc/dlist.h>