From: Gisle Vanem Date: Mon, 8 Oct 2007 14:38:51 +0000 (+0000) Subject: 'FD_CLOXEC' is meaningless on MSDOS/Watt-32. X-Git-Tag: curl-7_17_1~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59136ece19b499bcc3d3a64aa97be67307072381;p=curl 'FD_CLOXEC' is meaningless on MSDOS/Watt-32. --- diff --git a/ares/ares_process.c b/ares/ares_process.c index c03ea4a89..a6820de6e 100644 --- a/ares/ares_process.c +++ b/ares/ares_process.c @@ -715,7 +715,7 @@ void ares__send_query(ares_channel channel, struct query *query, time_t now) &(query->queries_by_timeout), &(channel->queries_by_timeout[query->timeout % ARES_TIMEOUT_TABLE_SIZE])); - + /* Keep track of queries bucketed by server, so we can process server * errors quickly. */ @@ -800,7 +800,7 @@ static int configure_socket(int s, ares_channel channel) { nonblock(s, TRUE); -#ifdef FD_CLOEXEC +#if defined(FD_CLOEXEC) && !defined(MSDOS) /* Configure the socket fd as close-on-exec. */ if (fcntl(s, F_SETFD, FD_CLOEXEC) == -1) return -1;