Index: include/time.h =================================================================== --- include/time.h +++ include/time.h @@ -207,9 +207,14 @@ #include #endif +#if (defined(__ISO_C_VISIBLE) && __ISO_C_VISIBLE >= 2011) || \ + (defined(cplusplus) && cplusplus >= 201703) || \ + defined(__BSD_VISIBLE) +#include /* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */ #define TIME_UTC 1 /* time elapsed since epoch */ int timespec_get(struct timespec *ts, int base); +#endif __END_DECLS