File tree Expand file tree Collapse file tree 5 files changed +35
-0
lines changed Expand file tree Collapse file tree 5 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 99
1010#include <sys/_timespec.h>
1111
12+ #define _TIMESPEC_DECLARED
13+
1214struct itimerspec {
1315 struct timespec it_interval ; /* Timer interval */
1416 struct timespec it_value ; /* Timer expiration */
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ struct timespec {
1313 time_t tv_sec ;
1414 long tv_nsec ;
1515};
16+ #define __timespec_defined
1617
1718#endif /* ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_SYS__TIMESPEC_H_ */
Original file line number Diff line number Diff line change @@ -19,9 +19,13 @@ typedef _TIME_T_ time_t;
1919typedef _SUSECONDS_T_ suseconds_t ;
2020#endif
2121
22+ #if !defined(_TIMESPEC_DECLARED ) && !defined(__timespec_defined )
2223struct timespec {
2324 time_t tv_sec ;
2425 long tv_nsec ;
2526};
27+ #define __timespec_defined
28+ #define _TIMESPEC_DECLARED
29+ #endif
2630
2731#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMESPEC_H_ */
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright The Zephyr Project Contributors
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ #ifndef ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_SYS__TIMESPEC_H_
8+ #define ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_SYS__TIMESPEC_H_
9+
10+ #include_next <sys/_timespec.h>
11+
12+ #define _TIMESPEC_DECLARED
13+
14+ #endif /* ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_SYS__TIMESPEC_H_ */
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright The Zephyr Project Contributors
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ #ifndef ZEPHYR_LIB_LIBC_PICOLIBC_INCLUDE_SYS__TIMESPEC_H_
8+ #define ZEPHYR_LIB_LIBC_PICOLIBC_INCLUDE_SYS__TIMESPEC_H_
9+
10+ #include_next <sys/_timespec.h>
11+
12+ #define _TIMESPEC_DECLARED
13+
14+ #endif /* ZEPHYR_LIB_LIBC_PICOLIBC_INCLUDE_SYS__TIMESPEC_H_ */
You can’t perform that action at this time.
0 commit comments