From 3e39cda4d6b3e462accdb1cf19e36f048cc02659 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sun, 10 Sep 2023 06:26:14 +0200 Subject: [PATCH] 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 --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5c57b41d0b..15fbda12ad 100644 --- a/configure.ac +++ b/configure.ac @@ -3569,8 +3569,10 @@ CURL_RUN_IFELSE( [ #include #include - time_t t = -1; - return (t > 0); + int main(void) { + time_t t = -1; + return (t < 0); + } ],[ AC_MSG_RESULT([yes]) AC_DEFINE(HAVE_TIME_T_UNSIGNED, 1, [Define this if time_t is unsigned]) -- 2.47.3