IP_MTU missing on macos
This commit is contained in:
parent
d4cd0581e4
commit
f05ed5781b
|
|
@ -273,6 +273,9 @@ namespace Nz
|
||||||
unsigned int code;
|
unsigned int code;
|
||||||
socklen_t codeLength = sizeof(code);
|
socklen_t codeLength = sizeof(code);
|
||||||
|
|
||||||
|
#if defined(NAZARA_PLATFORM_MACOSX)
|
||||||
|
return 0; //No IP_MTU on macosx
|
||||||
|
#else
|
||||||
if (getsockopt(handle, IPPROTO_IP, IP_MTU, &code, &codeLength) == SOCKET_ERROR)
|
if (getsockopt(handle, IPPROTO_IP, IP_MTU, &code, &codeLength) == SOCKET_ERROR)
|
||||||
{
|
{
|
||||||
if (error)
|
if (error)
|
||||||
|
|
@ -280,6 +283,7 @@ namespace Nz
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
*error = SocketError_NoError;
|
*error = SocketError_NoError;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue