7fcab12
Avoid implicit ints in the guile_cv_localtime_cache check.  It cause
7fcab12
the check to always fail with strict(er) C99 compilers that do not
7fcab12
support implicit int.
7fcab12
7fcab12
Submitted upstream:
7fcab12
7fcab12
  <https://lists.gnu.org/archive/html/bug-guile/2022-12/msg00017.html>
7fcab12
  <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60022>
7fcab12
7fcab12
diff --git a/configure b/configure
7fcab12
index e2816d1ead4b34ba..f541916fc08f88f6 100755
7fcab12
--- a/configure
7fcab12
+++ b/configure
7fcab12
@@ -52466,7 +52466,7 @@ else
7fcab12
 # include <stdlib.h>
7fcab12
 #endif
7fcab12
 extern char **environ;
7fcab12
-unset_TZ ()
7fcab12
+int unset_TZ ()
7fcab12
 {
7fcab12
   char **from, **to;
7fcab12
   for (to = from = environ; (*to = *from); from++)
7fcab12
@@ -52475,7 +52475,7 @@ unset_TZ ()
7fcab12
 }
7fcab12
 char TZ_GMT0[] = "TZ=GMT0";
7fcab12
 char TZ_PST8[] = "TZ=PST8";
7fcab12
-main()
7fcab12
+int main()
7fcab12
 {
7fcab12
   time_t now = time ((time_t *) 0);
7fcab12
   int hour_GMT0, hour_unset;
7fcab12
diff --git a/configure.ac b/configure.ac
7fcab12
index 0a7b29045b9ac5ec..50d024d7ec057073 100644
7fcab12
--- a/configure.ac
7fcab12
+++ b/configure.ac
7fcab12
@@ -1086,7 +1086,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <time.h>
7fcab12
 # include <stdlib.h>
7fcab12
 #endif
7fcab12
 extern char **environ;
7fcab12
-unset_TZ ()
7fcab12
+int unset_TZ ()
7fcab12
 {
7fcab12
   char **from, **to;
7fcab12
   for (to = from = environ; (*to = *from); from++)
7fcab12
@@ -1095,7 +1095,7 @@ unset_TZ ()
7fcab12
 }
7fcab12
 char TZ_GMT0[] = "TZ=GMT0";
7fcab12
 char TZ_PST8[] = "TZ=PST8";
7fcab12
-main()
7fcab12
+int main()
7fcab12
 {
7fcab12
   time_t now = time ((time_t *) 0);
7fcab12
   int hour_GMT0, hour_unset;