We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc09d4c commit e7f2019Copy full SHA for e7f2019
include/zephyr/posix/posix_signal.h
@@ -46,6 +46,9 @@ typedef int uid_t;
46
/* time_t must be defined by the libc time.h */
47
#include <time.h>
48
49
+#if __STDC_VERSION__ >= 201112L
50
+/* struct timespec must be defined in the libc time.h */
51
+#else
52
#if !defined(_TIMESPEC_DECLARED) && !defined(__timespec_defined)
53
struct timespec {
54
time_t tv_sec;
@@ -54,6 +57,7 @@ struct timespec {
57
#define _TIMESPEC_DECLARED
55
58
#define __timespec_defined
56
59
#endif
60
+#endif
61
62
/* sig_atomic_t must be defined by the libc signal.h */
63
0 commit comments