From: Daniel Stenberg Date: Thu, 6 Apr 2023 07:58:13 +0000 (+0200) Subject: configure: don't set HAVE_WRITABLE_ARGV on Windows X-Git-Tag: curl-8_1_0~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b95b6e98380b892193c6bc7ea85eab306c901f8;p=thirdparty%2Fcurl.git configure: don't set HAVE_WRITABLE_ARGV on Windows Ref: #10888 Closes #10896 --- diff --git a/configure.ac b/configure.ac index c95b4aacea..d54d8b2645 100644 --- a/configure.ac +++ b/configure.ac @@ -1794,9 +1794,17 @@ AC_MSG_CHECKING([if argv can be written to]) CURL_RUN_IFELSE([[ int main(int argc, char **argv) { +#ifdef _WIN32 + /* on Windows, writing to the argv does not hide the argument in + process lists so it can just be skipped */ + (void)argc; + (void)argv; + return 1; +#else (void)argc; argv[0][0] = ' '; return (argv[0][0] == ' ')?0:1; +#endif } ]],[ curl_cv_writable_argv=yes