aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sockfilt.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index 0e01035c5..d01a2d1fe 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -453,7 +453,17 @@ static bool juggle(curl_socket_t *sockfdp,
FD_ZERO(&fds_write);
FD_ZERO(&fds_err);
+#ifdef USE_WINSOCK
+ /*
+ ** WinSock select() does not support standard file descriptors,
+ ** it can only check SOCKETs. Since this program in its current
+ ** state will not work on WinSock based systems, next line is
+ ** commented out to allow warning-free compilation awaiting the
+ ** day it will be fixed to also run on WinSock systems.
+ */
+#else
FD_SET(fileno(stdin), &fds_read);
+#endif
switch(*mode) {