X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Ftime.h;h=4a681b4a01b6d0a81d643a8f7d354f80a066ba03;hp=2f4c74f73ecccc6a1bd2674aff39a3b0b5ef65a1;hb=41d7c77d6a2e74294807d35062e4cd1d48ab72d3;hpb=c1a9658bd19245ff0fb52d3da567815d822fb622 diff --git a/include/time.h b/include/time.h index 2f4c74f7..4a681b4a 100644 --- a/include/time.h +++ b/include/time.h @@ -7,13 +7,7 @@ extern "C" { #include -#undef NULL -#ifdef __cplusplus -#define NULL 0 -#else -#define NULL ((void*)0) -#endif - +#define NULL 0L #define __NEED_size_t #define __NEED_time_t @@ -45,6 +39,10 @@ struct tm long __tm_gmtoff; const char *__tm_zone; }; +#if defined(_BSD_SOURCE) +#define tm_gmtoff __tm_gmtoff +#define tm_zone __tm_zone +#endif clock_t clock (void); time_t time (time_t *);