mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
'FD_CLOXEC' is meaningless on MSDOS/Watt-32.
This commit is contained in:
parent
08fd1829e0
commit
59136ece19
@ -800,7 +800,7 @@ static int configure_socket(int s, ares_channel channel)
|
|||||||
{
|
{
|
||||||
nonblock(s, TRUE);
|
nonblock(s, TRUE);
|
||||||
|
|
||||||
#ifdef FD_CLOEXEC
|
#if defined(FD_CLOEXEC) && !defined(MSDOS)
|
||||||
/* Configure the socket fd as close-on-exec. */
|
/* Configure the socket fd as close-on-exec. */
|
||||||
if (fcntl(s, F_SETFD, FD_CLOEXEC) == -1)
|
if (fcntl(s, F_SETFD, FD_CLOEXEC) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user