From 368cab7c892eab4d9a3bd8e038dd685073de5af1 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 2 Oct 2019 16:11:46 +0900 Subject: [PATCH] Add definitions for struct timeval and struct timezone --- include/sys/time.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/sys/time.h diff --git a/include/sys/time.h b/include/sys/time.h new file mode 100644 index 0000000..b2cd897 --- /dev/null +++ b/include/sys/time.h @@ -0,0 +1,19 @@ +#ifndef __SYS_TIME_H +#define __SYS_TIME_H + +#include + +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 */ -- 2.47.3