summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-05-16 13:44:44 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-16 14:03:49 +0200
commit6f73a549fa484268fad607ba7cea2e3e9d47327a (patch)
tree728e9396bcda6d042f79e509b052cbb025f159d9
parent4dad585609e1a9a202f55f51c3e4beb44f968290 (diff)
downloadserenity-6f73a549fa484268fad607ba7cea2e3e9d47327a.zip
LibC: Add struct timespec to time.h
-rw-r--r--LibC/time.h6
1 files changed, 6 insertions, 0 deletions
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