summaryrefslogtreecommitdiff
path: root/ares/ares_process.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-22 02:51:54 +0000
committerYang Tse <yangsita@gmail.com>2007-02-22 02:51:54 +0000
commit69565afab0be081211df57a245a222cbd3e43ed3 (patch)
tree834ab5e7265abad18a542da69d7d65fba831cee3 /ares/ares_process.c
parent39aac6352159b4ba92463ec95b9e3df49a5b6693 (diff)
downloadcurl-69565afab0be081211df57a245a222cbd3e43ed3.tar.gz
Check for stdbool.h at configuration stage, and include it if available.
Check for lowercase 'bool' type at configuration stage. If not available provide a suitable replacement with a type definition of 'unsigned char' in setup_once.h Move definitions of TRUE and FALSE to setup_once.h
Diffstat (limited to 'ares/ares_process.c')
-rw-r--r--ares/ares_process.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ares/ares_process.c b/ares/ares_process.c
index 480948ebe..6b1b07154 100644
--- a/ares/ares_process.c
+++ b/ares/ares_process.c
@@ -54,10 +54,6 @@
#include "ares_dns.h"
#include "ares_private.h"
-#ifndef TRUE
-/* at least Solaris 7 does not have TRUE at this point */
-#define TRUE 1
-#endif
static int try_again(int errnum);
static void write_tcp_data(ares_channel channel, fd_set *write_fds,
@@ -532,7 +528,7 @@ static int nonblock(ares_socket_t sockfd, /* operate on this */
int flags;
flags = fcntl(sockfd, F_GETFL, 0);
- if (TRUE == nonblock)
+ if (FALSE != nonblock)
return fcntl(sockfd, F_SETFL, flags | O_NONBLOCK);
else
return fcntl(sockfd, F_SETFL, flags & (~O_NONBLOCK));