It expects a generic "struct sockaddr", not a "struct sockaddr_un". Pass the right member of the union. Not sure why gcc/llvm never complained about this... (cherry picked from commit 32b9736a) (cherry picked from commit caa0827c)