summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 13:26:13 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 13:26:13 -0400
commit5108c9d386503d72a2c7ef38f1da4f70358704c2 (patch)
treeae557bc9c77e56eef053bcbb22a6f0f9a06768e1 /src
parenteaa4121a0b4df40533f7d32c3c503d47c2d46e72 (diff)
add definition of struct __time
Diffstat (limited to 'src')
-rw-r--r--src/time/_time.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/time/_time.h b/src/time/_time.h
index e80bfdb7..85620e0f 100644
--- a/src/time/_time.h
+++ b/src/time/_time.h
@@ -22,4 +22,13 @@
#define DAYS_IN(y, m) (m == 1 ? (ISLEAPYEAR(y) ? 29 : 28) : \
((m == 3 || m == 5 || m == 8 || m == 10) ? 30 : 31))
+#define TZNAMELEN 64
+
+struct __time {
+ char stdtz[TZNAMELEN];
+ char dsttz[TZNAMELEN];
+};
+
+extern struct __time __time;
+
#endif