diff options
| author | Peter Dufault <dufault@FreeBSD.org> | 1998-03-28 11:51:01 +0000 |
|---|---|---|
| committer | Peter Dufault <dufault@FreeBSD.org> | 1998-03-28 11:51:01 +0000 |
| commit | 8a6472b7239ccfab9d1ce96671a9837813698499 (patch) | |
| tree | 6782e79d2d7ebfdd101778e6c8dbb33325c8ebcc /include/time.h | |
| parent | 08637435f22f9a440b841624d8f1d32d36a900d3 (diff) | |
Notes
Diffstat (limited to 'include/time.h')
| -rw-r--r-- | include/time.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/time.h b/include/time.h index 29cae4cd975d..3ef83609f672 100644 --- a/include/time.h +++ b/include/time.h @@ -42,6 +42,7 @@ #define _TIME_H_ #include <machine/ansi.h> +#include <sys/_posix.h> #ifndef _ANSI_SOURCE /* @@ -73,7 +74,10 @@ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +/* XXX I'm not sure if _ANSI_SOURCE is playing properly + * with the setups in _posix.h: + */ +#if !defined(_ANSI_SOURCE) && defined(_P1003_1B_VISIBLE_HISTORICALLY) /* * New in POSIX 1003.1b-1993. */ @@ -140,7 +144,9 @@ char *timezone __P((int, int)); void tzsetwall __P((void)); time_t timelocal __P((struct tm * const)); time_t timegm __P((struct tm * const)); +#endif /* neither ANSI nor POSIX */ +#if !defined(_ANSI_SOURCE) && defined(_P1003_1B_VISIBLE_HISTORICALLY) /* Introduced in POSIX 1003.1b-1993, not part of 1003.1-1990. */ int clock_getres __P((clockid_t, struct timespec *)); int clock_gettime __P((clockid_t, struct timespec *)); |
