From 5d2be3d085c8d5222181c44beddff9a0207feeed Mon Sep 17 00:00:00 2001 From: Evgeniy Paltsev Date: Fri, 18 Jun 2021 01:56:36 +0300 Subject: [PATCH] ARC: MWDT: workaround for double clockid_t definition Don't define clockid_t in Zephyr in case of ARC MWDT libc is used as ARC MWDT libc provides clockid_t. Signed-off-by: Eugeniy Paltsev Signed-off-by: Evgeniy Paltsev --- include/posix/posix_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/posix/posix_types.h b/include/posix/posix_types.h index dc875e351c4..7751daf8c40 100644 --- a/include/posix/posix_types.h +++ b/include/posix/posix_types.h @@ -22,11 +22,11 @@ typedef unsigned long useconds_t; #endif /* time related attributes */ -#ifndef CONFIG_NEWLIB_LIBC +#if !defined(CONFIG_NEWLIB_LIBC) && !defined(CONFIG_ARCMWDT_LIBC) #ifndef __clockid_t_defined typedef uint32_t clockid_t; #endif -#endif /*CONFIG_NEWLIB_LIBC */ +#endif /* !CONFIG_NEWLIB_LIBC && !CONFIG_ARCMWDT_LIBC */ #ifndef __timer_t_defined typedef unsigned long timer_t; #endif