mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 19:55:38 +00:00
fix feature test macros in time.h
stime is not _XOPEN_SOURCE, and some functions were missing with _BSD_SOURCE..
This commit is contained in:
parent
23be72ae45
commit
cf254c32ec
@ -100,7 +100,7 @@ int timer_getoverrun (timer_t);
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
char *strptime (const char *, const char *, struct tm *);
|
||||
extern int daylight;
|
||||
extern long timezone;
|
||||
@ -110,11 +110,8 @@ struct tm *getdate (const char *);
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
int stime(time_t *);
|
||||
#endif
|
||||
|
||||
#if defined(_GNU_SOURCE)
|
||||
time_t timegm(struct tm *);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user