ref: 7fbe23d0679e75b1b2ca5cee4f7360808eaba2b5
parent: 193e4dc49c36ce7944c2439e39da072bcc460b3e
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Mar 19 05:59:49 EDT 2021
add gettimeoday
--- a/include/npe/sys/time.h
+++ b/include/npe/sys/time.h
@@ -1,1 +1,13 @@
+#ifndef _npe_sys_time_h_
+#define _npe_sys_time_h_
+
#include <npe.h>
+
+struct timeval {
+ time_t tv_sec;
+ ulong tv_usec;
+};
+
+int gettimeofday(struct timeval *tv, struct timezone *tz);
+
+#endif
--- a/libnpe/mkfile
+++ b/libnpe/mkfile
@@ -19,6 +19,7 @@
fts_read.$O\
fts_set.$O\
getenv.$O\
+ gettimeofday.$O\
iconv.$O\
iconv_close.$O\
iconv_open.$O\