From: Daniel Stenberg Date: Thu, 25 Jan 2018 21:32:57 +0000 (+0100) Subject: configure: fix the check for unsigned time_t X-Git-Tag: curl-7_59_0~137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a230ba419eb3bd74c82dd7560cbb09b4b027b8a;p=curl 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. --- 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])