From: Benoit Pierre Date: Sun, 10 Sep 2023 04:26:14 +0000 (+0200) Subject: configure: fix `HAVE_TIME_T_UNSIGNED` check X-Git-Tag: curl-8_3_0~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e39cda4d6b3e462accdb1cf19e36f048cc02659;p=thirdparty%2Fcurl.git 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 --- 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])