From 87c27b6f06d0a967850f2db76e0c8282a11e1bcb Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 7 Oct 2004 07:56:44 -0400 Subject: COMP: Undef SETBLOCK before redefining it to remove parse warnings --- Source/CTest/Curl/connect.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/CTest/Curl/connect.c b/Source/CTest/Curl/connect.c index 8963fa0..51667ca 100644 --- a/Source/CTest/Curl/connect.c +++ b/Source/CTest/Curl/connect.c @@ -153,6 +153,9 @@ int Curl_nonblock(curl_socket_t sockfd, /* operate on this */ flags = nonblock; return ioctl(sockfd, FIONBIO, &flags); } +#ifdef SETBLOCK +# undef SETBLOCK +#endif #define SETBLOCK 2 #endif @@ -167,6 +170,9 @@ int Curl_nonblock(curl_socket_t sockfd, /* operate on this */ #ifdef HAVE_IOCTLSOCKET_CASE /* presumably for Amiga */ return IoctlSocket(sockfd, FIONBIO, (long)nonblock); +#ifdef SETBLOCK +# undef SETBLOCK +#endif #define SETBLOCK 4 #endif @@ -174,6 +180,9 @@ int Curl_nonblock(curl_socket_t sockfd, /* operate on this */ /* BeOS */ long b = nonblock ? 1 : 0; return setsockopt(sockfd, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b)); +#ifdef SETBLOCK +# undef SETBLOCK +#endif #define SETBLOCK 5 #endif @@ -181,6 +190,9 @@ int Curl_nonblock(curl_socket_t sockfd, /* operate on this */ (void)nonblock; (void)sockfd; return 0; /* returns success */ +#ifdef SETBLOCK +# undef SETBLOCK +#endif #define SETBLOCK 6 #endif -- cgit v0.12