Convert the socket type (necessary on Solaris).
This commit is contained in:
parent
2356fbce9e
commit
27eaac6a34
|
@ -2175,9 +2175,15 @@ SOCKET WINAPI WSOCK32_socket(INT af, INT type, INT protocol)
|
|||
/* check the socket type */
|
||||
switch(type)
|
||||
{
|
||||
case SOCK_STREAM:
|
||||
case SOCK_DGRAM:
|
||||
case SOCK_RAW: break;
|
||||
case WS_SOCK_STREAM:
|
||||
type=SOCK_STREAM;
|
||||
break;
|
||||
case WS_SOCK_DGRAM:
|
||||
type=SOCK_STREAM;
|
||||
break;
|
||||
case WS_SOCK_RAW:
|
||||
type=SOCK_STREAM;
|
||||
break;
|
||||
default: SetLastError(WSAESOCKTNOSUPPORT);
|
||||
return INVALID_SOCKET;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue