From 9a230ba419eb3bd74c82dd7560cbb09b4b027b8a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 25 Jan 2018 22:32:57 +0100 Subject: [PATCH] configure: fix the check for unsigned time_t Assign the time_t variable negative value and then check if it is greater than zero, which will evaluate true for unsigned time_t but false for signed time_t. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 76fa93d1b..d305e9693 100755 --- a/configure.ac +++ b/configure.ac @@ -3488,7 +3488,7 @@ AC_RUN_IFELSE([ AC_LANG_SOURCE([[ #include #include - time_t t = ULONG_MAX; + time_t t = -1; return (t > 0); ]])] ,[ AC_MSG_RESULT([yes])