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 <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
Evgeniy Paltsev 2021-06-18 01:56:36 +03:00 committed by Kumar Gala
commit 5d2be3d085

View file

@ -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