diff --git a/LibC/time.h b/LibC/time.h index 27a5c1cadc..3e02730ead 100644 --- a/LibC/time.h +++ b/LibC/time.h @@ -38,5 +38,11 @@ size_t strftime(char* s, size_t max, const char* format, const struct tm*); #define difftime(t1,t0) (double)(t1 - t0) +// This is c++11+, but we have no macro for that now. +struct timespec { + time_t tv_sec; + long tv_nsec; +}; + __END_DECLS