Convert the socket type (necessary on Solaris).

This commit is contained in:
Francois Gouget 2001-09-07 15:26:18 +00:00 committed by Alexandre Julliard
parent 2356fbce9e
commit 27eaac6a34
1 changed files with 9 additions and 3 deletions

View File

@ -2175,9 +2175,15 @@ SOCKET WINAPI WSOCK32_socket(INT af, INT type, INT protocol)
/* check the socket type */ /* check the socket type */
switch(type) switch(type)
{ {
case SOCK_STREAM: case WS_SOCK_STREAM:
case SOCK_DGRAM: type=SOCK_STREAM;
case SOCK_RAW: break; break;
case WS_SOCK_DGRAM:
type=SOCK_STREAM;
break;
case WS_SOCK_RAW:
type=SOCK_STREAM;
break;
default: SetLastError(WSAESOCKTNOSUPPORT); default: SetLastError(WSAESOCKTNOSUPPORT);
return INVALID_SOCKET; return INVALID_SOCKET;
} }