summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2023-11-14 11:28:15 -0500
committerJakob Kaivo <jkk@ung.org>2023-11-14 11:28:15 -0500
commite6c25e6c02e501f427b757db852b80ebddbfabc2 (patch)
tree33a042b6c9cb6644a11e1ae5b59a8ddfc1f161fe
parente7f0b1c5a3058f3623710ac79d41d2bf31e3d468 (diff)
define timespec for C11+HEADmaster
-rw-r--r--time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.h b/time.h
index 5fede75..a584a84 100644
--- a/time.h
+++ b/time.h
@@ -121,7 +121,7 @@ struct tm {
#endif
-#if (defined _POSIX_C_SOURCE && 199309 <= _POSIX_C_SOURCE)
+#if (defined _POSIX_C_SOURCE && 199309 <= _POSIX_C_SOURCE) || (201112 <= __STDC_VERSION__)
/* ./src/time/struct_timespec.c */
#ifndef __TYPE_struct_timespec_DEFINED__
#define __TYPE_struct_timespec_DEFINED__