mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
configure: fix HAVE_TIME_T_UNSIGNED
check
The syntax was incorrect (need a proper main body), and the test condition was wrong (resulting in a signed `time_t` detected as unsigned). Closes #11825
This commit is contained in:
parent
fe599ff090
commit
3e39cda4d6
@ -3569,8 +3569,10 @@ CURL_RUN_IFELSE(
|
|||||||
[
|
[
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
time_t t = -1;
|
int main(void) {
|
||||||
return (t > 0);
|
time_t t = -1;
|
||||||
|
return (t < 0);
|
||||||
|
}
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE(HAVE_TIME_T_UNSIGNED, 1, [Define this if time_t is unsigned])
|
AC_DEFINE(HAVE_TIME_T_UNSIGNED, 1, [Define this if time_t is unsigned])
|
||||||
|
Loading…
Reference in New Issue
Block a user