summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-07 11:56:44 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-07 11:56:44 (GMT)
commit87c27b6f06d0a967850f2db76e0c8282a11e1bcb (patch)
tree2210694f6ee2d1f6ebf89b1cffcbf86c2936ed9a /Source/CTest/Curl
parent7d0b2eabd66effc91b511b24632e3b4a70bc01b3 (diff)
downloadCMake-87c27b6f06d0a967850f2db76e0c8282a11e1bcb.zip
CMake-87c27b6f06d0a967850f2db76e0c8282a11e1bcb.tar.gz
CMake-87c27b6f06d0a967850f2db76e0c8282a11e1bcb.tar.bz2
COMP: Undef SETBLOCK before redefining it to remove parse warnings
Diffstat (limited to 'Source/CTest/Curl')
-rw-r--r--Source/CTest/Curl/connect.c12
1 files changed, 12 insertions, 0 deletions
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