vquic: fix preprocessor check for old Darwin versions
No binary (build failed)
—
(log yok)
| @@ -564,9 +564,12 @@ static size_t vquic_msghdr_get_udp_gro(struct msghdr *msg) | |
| } | |
| #endif /* (HAVE_SENDMMSG || HAVE_SENDMSG) && !HAVE_APPLE_MSG_X */ | |
| + | /* IP_RECVTOS was added in the macOS 10.13 SDK */ |
| #if (defined(HAVE_SENDMMSG) || defined(HAVE_SENDMSG) || \ | |
| defined(HAVE_APPLE_MSG_X)) && \ | |
| - | (defined(IP_RECVTOS) || defined(IP_TOS)) && defined(IPTOS_ECN_MASK) |
| + | ((defined(__APPLE__) && defined(IP_RECVTOS)) || \ |
| + | (!defined(__APPLE__) && defined(IP_TOS))) && \ |
| + | defined(IPTOS_ECN_MASK) |
| static uint8_t vquic_msghdr_get_ecn(struct msghdr *msg, int family) | |
| { | |
| struct cmsghdr *cmsg; | |