--- scheduler/client.c 2026-04-28 01:13:21.000000000 +0800 +++ scheduler/client.c 2026-06-08 21:29:03.000000000 +0800 @@ -268,6 +268,13 @@ if (httpAddrFamily(httpGetAddress(con->http)) == AF_LOCAL) { # ifdef __APPLE__ +# ifndef SOL_LOCAL +# define SOL_LOCAL 0 +# endif +# ifndef LOCAL_PEERPID +# define LOCAL_PEERPID 0x002 +# endif + socklen_t peersize; /* Size of peer credentials */ pid_t peerpid; /* Peer process ID */ char peername[256]; /* Name of process */