← Commit list

5dbdacaa04

Un1q32
Un1q32
2026-09-02
SUCCESS Duration: 401s

Subject

vquic: fix preprocessor check for old Darwin versions

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vquic/vquic.c+4 -1
@@ -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;