From 2f69836493d16a342765227be4ce252f9425298d Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Fri, 18 Sep 2020 16:06:51 -0700 Subject: [PATCH] Since gettimeofday() is called when not on Windows even if CHUUKEI is not set, make an effort to pick up the prototype. --- src/io/chuukei.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/io/chuukei.c b/src/io/chuukei.c index 4b9966c86..3fb9cf434 100644 --- a/src/io/chuukei.c +++ b/src/io/chuukei.c @@ -13,6 +13,7 @@ #include "io/files-util.h" #include "io/inet.h" #include "io/signal-handlers.h" +#include "system/h-basic.h" #include "term/gameterm.h" #include "util/angband-files.h" #include "view/display-messages.h" @@ -25,6 +26,10 @@ #include #ifdef WINDOWS #include +#else +#ifdef HAVE_SYS_TIME_H +#include +#endif #endif #ifdef CHUUKEI @@ -35,7 +40,6 @@ #include #include #include -#include #include #include -- 2.24.3 (Apple Git-128)