summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-01-25 22:32:57 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-01-25 22:32:57 +0100
commit9a230ba419eb3bd74c82dd7560cbb09b4b027b8a (patch)
tree71afd4f3244ea64a68ee542e616ca13cc03428f8 /configure.ac
parent1c39128d974666107fc6d9ea15f294036851f224 (diff)
downloadcurl-9a230ba419eb3bd74c82dd7560cbb09b4b027b8a.tar.gz
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.
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac2
1 files changed, 1 insertions, 1 deletions
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 <time.h>
#include <limits.h>
- time_t t = ULONG_MAX;
+ time_t t = -1;
return (t > 0);
]])] ,[
AC_MSG_RESULT([yes])