X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Ftime.h;h=3cc0d28ad923d4f6a66d62b707464a5e129ef3c0;hb=11458e5b098319cf3e2d05c8cbaa74d58db740e3;hp=ddfad58f7dc3cac609b06137279d35c815bbc81f;hpb=36bf56940af90baa478dd1258884291d5d213d10;p=musl diff --git a/include/time.h b/include/time.h index ddfad58f..3cc0d28a 100644 --- a/include/time.h +++ b/include/time.h @@ -18,7 +18,8 @@ extern "C" { #define __NEED_clock_t #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ - || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \ + || defined(_BSD_SOURCE) #define __NEED_struct_timespec #define __NEED_clockid_t #define __NEED_timer_t @@ -57,7 +58,8 @@ char *ctime (const time_t *); #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ - || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \ + || defined(_BSD_SOURCE) size_t strftime_l (char *, size_t, const char *, const struct tm *, locale_t); @@ -108,6 +110,11 @@ struct tm *getdate (const char *); #endif +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +int stime(time_t *); +time_t timegm(struct tm *); +#endif + #ifdef __cplusplus } #endif