summaryrefslogtreecommitdiff
path: root/include/time.h
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-01-04 12:57:15 +0100
committerrofl0r <retnyg@gmx.net>2013-01-04 20:36:34 +0100
commit87781ac64ce5fcd68fb2cf32a3b4305a807e6367 (patch)
tree2ee88f60a65760cd9de88924974e51281a539778 /include/time.h
parente895ddc0cd560ffb217c741139721a836c5f4b7f (diff)
downloadmusl-87781ac64ce5fcd68fb2cf32a3b4305a807e6367.tar.gz
musl-87781ac64ce5fcd68fb2cf32a3b4305a807e6367.tar.bz2
musl-87781ac64ce5fcd68fb2cf32a3b4305a807e6367.tar.xz
musl-87781ac64ce5fcd68fb2cf32a3b4305a807e6367.zip
time.h: add BSD aliases for otherwise internal struct tm members
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index 2f4c74f7..fbc47db9 100644
--- 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 *);