X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/893c4cc0564c00dd541f9ee612be5896a7894679..8f3f8eec08624e538e98f43a3157f3d9a0c41c79:/socket.c diff --git a/socket.c b/socket.c index 4ca87037..bf4f26bd 100644 --- a/socket.c +++ b/socket.c @@ -698,7 +698,7 @@ static int socketpair_tcp(int fd[2]) goto failed; memset(&sock2, 0, sizeof sock2); -#ifdef HAVE_SOCKADDR_LEN +#if HAVE_SOCKADDR_SIN_LEN sock2.sin_len = sizeof sock2; #endif sock2.sin_family = PF_INET;