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 */
|
/* 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue