summaryrefslogtreecommitdiff
path: root/source/kit/time.h
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2022-12-29 07:51:16 +0100
committerMitya Selivanov <automainint@guattari.tech>2022-12-29 07:51:16 +0100
commit7e6b36bc2d332a3cb66b83116a393ac4728236d5 (patch)
tree4e7255b1237564f9682cb8e1b84a5bc0c0a4fbef /source/kit/time.h
parentf9df8ec356b1e18bf46c9a35bec78ed025107376 (diff)
downloadkit-7e6b36bc2d332a3cb66b83116a393ac4728236d5.zip
Improve C89/90 compat
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