mirror of
https://github.com/curl/curl.git
synced 2026-05-30 10:17:28 +03:00
configure: don't set HAVE_WRITABLE_ARGV on Windows
Ref: #10888 Closes #10896
This commit is contained in:
parent
0ba120e307
commit
7b95b6e983
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue