From 4b3a664a20d5f317f76f30a1ae51b6db33f79e62 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 27 Oct 2016 08:38:16 +0200 Subject: [PATCH] Add kernel space header for for RTEMS Signed-off-by: Sebastian Huber --- newlib/libc/sys/rtems/include/sys/lock.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/newlib/libc/sys/rtems/include/sys/lock.h b/newlib/libc/sys/rtems/include/sys/lock.h index c261adf68..e0d77cb61 100644 --- a/newlib/libc/sys/rtems/include/sys/lock.h +++ b/newlib/libc/sys/rtems/include/sys/lock.h @@ -232,4 +232,9 @@ typedef struct _Mutex_recursive_Control _LOCK_RECURSIVE_T; __END_DECLS -#endif /* _SYS_LOCK_H_ */ +#ifdef _KERNEL +/* Header file provided outside of Newlib */ +#include +#endif + +#endif /* !_SYS_LOCK_H_ */