1 /*
2  * Copyright The Zephyr Project Contributors
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_LIB_LIBC_PICOLIBC_INCLUDE_TIME_H_
8 #define ZEPHYR_LIB_LIBC_PICOLIBC_INCLUDE_TIME_H_
9 
10 #if defined(_POSIX_C_SOURCE) || defined(__DOXYGEN__)
11 
12 /* temporary workaround for https://github.com/picolibc/picolibc/pull/1079 */
13 #include <sys/_types.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #ifndef _PID_T_DECLARED
20 typedef __pid_t pid_t;
21 #define _PID_T_DECLARED
22 #endif
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 
28 #endif /* defined(_POSIX_C_SOURCE) || defined(__DOXYGEN__) */
29 
30 #include_next <time.h>
31 
32 #endif /* ZEPHYR_LIB_LIBC_PICOLIBC_INCLUDE_TIME_H_ */
33