mirror of
https://github.com/curl/curl.git
synced 2026-05-04 21:39:58 +03:00
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.
This commit is contained in:
parent
1c39128d97
commit
9a230ba419
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue