From 6f73a549fa484268fad607ba7cea2e3e9d47327a Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Thu, 16 May 2019 13:44:44 +0200 Subject: [PATCH] LibC: Add struct timespec to time.h --- LibC/time.h | 6 ++++++ 1 file changed, 6 insertions(+) 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