fix feature test macros in time.h
authorRich Felker <dalias@aerifal.cx>
Wed, 13 Jun 2012 18:43:16 +0000 (14:43 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 13 Jun 2012 18:43:16 +0000 (14:43 -0400)
stime is not _XOPEN_SOURCE, and some functions were missing with
_BSD_SOURCE..

include/time.h

index ecdc66d..50ee500 100644 (file)
@@ -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