From 6c2a93e542fa719488f7d358b707fbd2b02dc3ed Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Sun, 5 Jan 2014 15:28:31 +0000 Subject: [PATCH] Updated ioctlsocket to work with SPX sockets. --- src/winsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winsock.c b/src/winsock.c index 7257f2d..bda829f 100644 --- a/src/winsock.c +++ b/src/winsock.c @@ -1140,7 +1140,7 @@ int PASCAL ioctlsocket(SOCKET fd, long cmd, u_long *argp) { log_printf(LOG_DEBUG, "ioctlsocket(%d, %d)", fd, cmd); - if(cmd == FIONREAD) + if(cmd == FIONREAD && !(sock->flags & IPX_IS_SPX)) { /* Test to see if data is waiting. */