diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-06-13 14:43:16 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-06-13 14:43:16 -0400 |
commit | cf254c32ec47df4975d14e97233918e42ee70cea (patch) | |
tree | 73e6a8f2f3f3d8ef7c26283817588c1687bf108e /include | |
parent | 23be72ae4534c13a7fd03f580934cc251ada619f (diff) | |
download | musl-cf254c32ec47df4975d14e97233918e42ee70cea.tar.gz musl-cf254c32ec47df4975d14e97233918e42ee70cea.tar.xz musl-cf254c32ec47df4975d14e97233918e42ee70cea.zip |
fix feature test macros in time.h
stime is not _XOPEN_SOURCE, and some functions were missing with _BSD_SOURCE..
Diffstat (limited to 'include')
-rw-r--r-- | include/time.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/time.h b/include/time.h index ecdc66df..50ee5001 100644 --- a/include/time.h +++ b/include/time.h @@ -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 |