summaryrefslogtreecommitdiff
path: root/source/kit/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/kit/time.h')
-rw-r--r--source/kit/time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/kit/time.h b/source/kit/time.h
index 9445912..cf54d47 100644
--- a/source/kit/time.h
+++ b/source/kit/time.h
@@ -12,10 +12,14 @@ extern "C" {
#endif
#ifdef KIT_NEED_STRUCT_TIMESPEC
+# ifdef KIT_HAVE_BITS_TYPES_STRUCT_TIMESPEC_H
+# include <bits/types/struct_timespec.h>
+# else
struct timespec {
time_t tv_sec; /* Seconds - >= 0 */
long tv_nsec; /* Nanoseconds - [0, 999999999] */
};
+# endif
#endif
#ifdef KIT_NEED_TIMESPEC_GET