mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 07:12:15 +00:00
time.h: add BSD aliases for otherwise internal struct tm members
This commit is contained in:
parent
e895ddc0cd
commit
87781ac64c
@ -45,6 +45,10 @@ struct tm
|
|||||||
long __tm_gmtoff;
|
long __tm_gmtoff;
|
||||||
const char *__tm_zone;
|
const char *__tm_zone;
|
||||||
};
|
};
|
||||||
|
#if defined(_BSD_SOURCE)
|
||||||
|
#define tm_gmtoff __tm_gmtoff
|
||||||
|
#define tm_zone __tm_zone
|
||||||
|
#endif
|
||||||
|
|
||||||
clock_t clock (void);
|
clock_t clock (void);
|
||||||
time_t time (time_t *);
|
time_t time (time_t *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user