--- src/rtpsession_inet.c 2022-12-20 22:30:27.000000000 +0800 +++ src/rtpsession_inet.c 2024-08-14 11:59:03.000000000 +0800 @@ -25,6 +25,12 @@ #if __APPLE__ #include "TargetConditionals.h" +#ifndef _DARWIN_C_SOURCE +#define _DARWIN_C_SOURCE +#endif +#ifndef IPV6_RECVDSTADDR +#define IPV6_RECVDSTADDR 7 +#endif #endif #ifdef HAVE_CONFIG_H