--- proxygen/lib/http/session/HTTPSession.cpp.orig 2022-12-25 16:00:33.000000000 +0700 +++ proxygen/lib/http/session/HTTPSession.cpp 2022-12-31 06:26:42.000000000 +0700 @@ -24,6 +24,10 @@ #include #include +#ifdef __APPLE__ +# include +#endif + using fizz::AsyncFizzBase; using folly::AsyncSocket; using folly::AsyncSocketException; @@ -2027,7 +2031,7 @@ transportInfo_.rtt = std::chrono::microseconds(tinfo->tcpinfo.tcpi_rtt); } transportInfo_.rtx = tinfo->rtx; -#elif defined(__APPLE__) +#elif defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED > 101003 tinfo->recvwnd = tinfo->tcpinfo.tcpi_rcv_wnd << tinfo->tcpinfo.tcpi_rcv_wscale; #endif --- proxygen/lib/http/coro/HTTPCoroSession.cpp.orig 2025-12-14 14:17:44.000000000 +0800 +++ proxygen/lib/http/coro/HTTPCoroSession.cpp 2025-12-19 17:46:46.000000000 +0800 @@ -1399,7 +1399,7 @@ tinfo->readMaxPacingRate(sock); tinfo->recvwnd = tinfo->tcpinfo.tcpi_rcv_space << tinfo->tcpinfo.tcpi_rcv_wscale; -#elif defined(__APPLE__) +#elif defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED > 101003 tinfo->recvwnd = tinfo->tcpinfo.tcpi_rcv_wnd << tinfo->tcpinfo.tcpi_rcv_wscale; #endif // defined(__linux__) || defined(__FreeBSD__)