Index: src/OFTCPSocket.m ================================================================== --- src/OFTCPSocket.m +++ src/OFTCPSocket.m @@ -195,11 +195,11 @@ address->family == OFSocketAddressFamilyIPv4) _flags |= flagMapIPv4; else _flags &= ~flagMapIPv4; } -#elif defined(OF_MACOS) || defined(OF_IOS) +#elif (defined(OF_MACOS) || defined(OF_IOS)) && defined(SAE_ASSOCID_ANY) if (_flags & flagUseMPTCP) { _socket = socket(AF_MULTIPATH, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP); if (_socket != OFInvalidSocketHandle) @@ -246,11 +246,11 @@ mappedIPv4 = mapIPv4(address); address = &mappedIPv4; } #endif -#if defined(OF_MACOS) || defined(OF_IOS) +#if (defined(OF_MACOS) || defined(OF_IOS)) && defined(SAE_ASSOCID_ANY) if (_flags & flagUseConnectX) { sa_endpoints_t endpoints = { .sae_dstaddr = (struct sockaddr *)&address->sockaddr, .sae_dstaddrlen = address->length };