Commit 9da47754 authored by Keith Packard's avatar Keith Packard Committed by Carles Cufi
Browse files

posix: Avoid stepping on picolibc clockid_t and timer_t



picolibc sets _CLOCKID_T_DECLARED and _TIMER_T_DECLARED, not
__clockid_t_defined and __timer_t_defined.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 94043dbe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -73,11 +73,11 @@ typedef unsigned long useconds_t;

/* time related attributes */
#if !defined(CONFIG_NEWLIB_LIBC) && !defined(CONFIG_ARCMWDT_LIBC)
#ifndef __clockid_t_defined
#if !defined(__clockid_t_defined) && !defined(_CLOCKID_T_DECLARED)
typedef uint32_t clockid_t;
#endif
#endif /* !CONFIG_NEWLIB_LIBC && !CONFIG_ARCMWDT_LIBC */
#ifndef __timer_t_defined
#if !defined(__timer_t_defined) && !defined(_TIMER_T_DECLARED)
typedef unsigned long timer_t;
#endif