From: Matthias Kruk Date: Wed, 2 Oct 2019 07:11:46 +0000 (+0900) Subject: Add definitions for struct timeval and struct timezone X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=368cab7c892eab4d9a3bd8e038dd685073de5af1;p=corax Add definitions for struct timeval and struct timezone --- 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 */