diff options
| author | Yang Tse <yangsita@gmail.com> | 2009-06-12 02:41:16 +0000 | 
|---|---|---|
| committer | Yang Tse <yangsita@gmail.com> | 2009-06-12 02:41:16 +0000 | 
| commit | 4ea513cc387c0a67c861a87aea01e6d1cac4854c (patch) | |
| tree | bd32a99caf08d3945f215cd0a0e179b8a2f3d881 /tests/server/sockfilt.c | |
| parent | 3ca0b9bb47f015c0de7379da46d10948e0637302 (diff) | |
fix compiler warning
Diffstat (limited to 'tests/server/sockfilt.c')
| -rw-r--r-- | tests/server/sockfilt.c | 10 | 
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) { | 
