=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/time.h,v retrieving revision 1.30 retrieving revision 1.31 diff -c -r1.30 -r1.31 *** src/include/time.h 2017/09/05 03:16:13 1.30 --- src/include/time.h 2018/10/30 16:28:42 1.31 *************** *** 1,4 **** ! /* $OpenBSD: time.h,v 1.30 2017/09/05 03:16:13 schwarze Exp $ */ /* $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $ */ /* $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ */ /* *************** *** 70,76 **** #define CLOCKS_PER_SEC 100 /* frequency of ticks reported by clock(). */ ! #if __POSIX_VISIBLE >= 199309 #ifndef _TIMESPEC_DECLARED #define _TIMESPEC_DECLARED struct timespec { --- 70,76 ---- #define CLOCKS_PER_SEC 100 /* frequency of ticks reported by clock(). */ ! #if __POSIX_VISIBLE >= 199309 || __ISO_C_VISIBLE >= 2011 #ifndef _TIMESPEC_DECLARED #define _TIMESPEC_DECLARED struct timespec { *************** *** 78,84 **** --- 78,86 ---- long tv_nsec; /* and nanoseconds */ }; #endif + #endif + #if __POSIX_VISIBLE >= 199309 #include #ifndef _CLOCKID_T_DEFINED_ *************** *** 171,176 **** --- 173,183 ---- size_t strftime_l(char *__restrict, size_t, const char *__restrict, const struct tm *__restrict, locale_t) __attribute__ ((__bounded__(__string__,1,2))); + #endif + + #if __ISO_C_VISIBLE >= 2011 + #define TIME_UTC 1 /* time elapsed since epoch */ + int timespec_get(struct timespec *_ts, int _base); #endif #if __BSD_VISIBLE