OSDN Git Service

Since gettimeofday() is called when not on Windows even if CHUUKEI is not set, make...
authorEric Branlund <ebranlund@fastmail.com>
Sat, 19 Sep 2020 01:00:24 +0000 (18:00 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Sat, 19 Sep 2020 01:00:24 +0000 (18:00 -0700)
src/chuukei.c

index 840e038..885d166 100644 (file)
 #include <ctype.h>
 #ifdef WINDOWS
 #include <windows.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
 #endif
 
 #ifdef CHUUKEI
@@ -26,7 +30,6 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
-#include <sys/time.h>
 #include <arpa/inet.h>
 
 #include <setjmp.h>