Commit 888c930f authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

ws2_32: Use a symbolic name instead of hand-made value.

parent 01d9eac0
...@@ -2258,7 +2258,7 @@ INT WINAPI WSAIoctl(SOCKET s, ...@@ -2258,7 +2258,7 @@ INT WINAPI WSAIoctl(SOCKET s,
break; break;
default: default:
WARN("\tunsupported WS_IOCTL cmd (%08lx)\n", dwIoControlCode); FIXME("unsupported WS_IOCTL cmd (%08lx)\n", dwIoControlCode);
release_sock_fd( s, fd ); release_sock_fd( s, fd );
WSASetLastError(WSAEOPNOTSUPP); WSASetLastError(WSAEOPNOTSUPP);
return SOCKET_ERROR; return SOCKET_ERROR;
...@@ -2318,7 +2318,7 @@ int WINAPI WS_ioctlsocket(SOCKET s, long cmd, u_long *argp) ...@@ -2318,7 +2318,7 @@ int WINAPI WS_ioctlsocket(SOCKET s, long cmd, u_long *argp)
newcmd=SIOCATMARK; newcmd=SIOCATMARK;
break; break;
case WS__IOW('f',125,u_long): case WS_FIOASYNC:
WARN("Warning: WS1.1 shouldn't be using async I/O\n"); WARN("Warning: WS1.1 shouldn't be using async I/O\n");
SetLastError(WSAEINVAL); SetLastError(WSAEINVAL);
return SOCKET_ERROR; return SOCKET_ERROR;
......
...@@ -750,10 +750,20 @@ typedef struct WS(WSAData) ...@@ -750,10 +750,20 @@ typedef struct WS(WSAData)
#ifndef USE_WS_PREFIX #ifndef USE_WS_PREFIX
#define FIONREAD _IOR('f', 127, u_long) #define FIONREAD _IOR('f', 127, u_long)
#define FIONBIO _IOW('f', 126, u_long) #define FIONBIO _IOW('f', 126, u_long)
#define FIOASYNC _IOW('f', 125, u_long)
#define SIOCSHIWAT _IOW('s', 0, u_long)
#define SIOCGHIWAT _IOR('s', 1, u_long)
#define SIOCSLOWAT _IOW('s', 2, u_long)
#define SIOCGLOWAT _IOR('s', 3, u_long)
#define SIOCATMARK _IOR('s', 7, u_long) #define SIOCATMARK _IOR('s', 7, u_long)
#else #else
#define WS_FIONREAD WS__IOR('f', 127, u_long) #define WS_FIONREAD WS__IOR('f', 127, u_long)
#define WS_FIONBIO WS__IOW('f', 126, u_long) #define WS_FIONBIO WS__IOW('f', 126, u_long)
#define WS_FIOASYNC WS__IOW('f', 125, u_long)
#define WS_SIOCSHIWAT WS__IOW('s', 0, u_long)
#define WS_SIOCGHIWAT WS__IOR('s', 1, u_long)
#define WS_SIOCSLOWAT WS__IOW('s', 2, u_long)
#define WS_SIOCGLOWAT WS__IOR('s', 3, u_long)
#define WS_SIOCATMARK WS__IOR('s', 7, u_long) #define WS_SIOCATMARK WS__IOR('s', 7, u_long)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment