projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e895ddc
)
time.h: add BSD aliases for otherwise internal struct tm members
author
rofl0r
<retnyg@gmx.net>
Fri, 4 Jan 2013 11:57:15 +0000
(12:57 +0100)
committer
rofl0r
<retnyg@gmx.net>
Fri, 4 Jan 2013 19:36:34 +0000
(20:36 +0100)
include/time.h
patch
|
blob
|
history
diff --git
a/include/time.h
b/include/time.h
index 2f4c74f73ecccc6a1bd2674aff39a3b0b5ef65a1..fbc47db90e7cf5f62225f8ecf4d78ad7c46263fa 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 *);