projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
time.h: add BSD aliases for otherwise internal struct tm members
[musl]
/
include
/
time.h
diff --git
a/include/time.h
b/include/time.h
index
2f4c74f
..
fbc47db
100644
(file)
--- a/
include/time.h
+++ b/
include/time.h
@@
-45,6
+45,10
@@
struct tm
long __tm_gmtoff;
const char *__tm_zone;
};
+#if defined(_BSD_SOURCE)
+#define tm_gmtoff __tm_gmtoff
+#define tm_zone __tm_zone
+#endif
clock_t clock (void);
time_t time (time_t *);