]> git.corax.cc Git - corax/commitdiff
Add definitions for struct timeval and struct timezone
authorMatthias Kruk <m@m10k.eu>
Wed, 2 Oct 2019 07:11:46 +0000 (16:11 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 2 Oct 2019 07:11:46 +0000 (16:11 +0900)
include/sys/time.h [new file with mode: 0644]

diff --git a/include/sys/time.h b/include/sys/time.h
new file mode 100644 (file)
index 0000000..b2cd897
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef __SYS_TIME_H
+#define __SYS_TIME_H
+
+#include <sys/types.h>
+
+typedef unsigned long time_t;
+typedef unsigned long suseconds_t;
+
+struct timeval {
+       time_t      tv_sec;
+       suseconds_t tv_usec;
+};
+
+struct timezone {
+       int tz_minuteswest;
+       int tz_dsttime;
+};
+
+#endif /* __SYS_TIME_H */