Unverified Commit 9a230ba4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 1c39128d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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])