time.h: add BSD aliases for otherwise internal struct tm members

This commit is contained in:
rofl0r 2013-01-04 12:57:15 +01:00
parent e895ddc0cd
commit 87781ac64c
1 changed files with 4 additions and 0 deletions

View File

@ -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 *);