IP_MTU missing on macos

This commit is contained in:
ImperatorS79 2020-11-22 13:32:17 +01:00
parent d4cd0581e4
commit f05ed5781b
1 changed files with 4 additions and 0 deletions

View File

@ -273,6 +273,9 @@ namespace Nz
unsigned int 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 (error)
@ -280,6 +283,7 @@ namespace Nz
return 0;
}
#endif
if (error)
*error = SocketError_NoError;