Commit ac7aa922 authored by Wayne Davison's avatar Wayne Davison

Use new HAVE_SOCKADDR_SIN_LEN define (replaces HAVE_SOCKADDR_LEN).

parent 0042f818
......@@ -195,7 +195,7 @@ void client_sockaddr(int fd,
memset(sin, 0, sizeof(*sin));
sin->sin_family = AF_INET;
*ss_len = sizeof(struct sockaddr_in);
#ifdef HAVE_SOCKADDR_LEN
#if HAVE_SOCKADDR_SIN_LEN
sin->sin_len = *ss_len;
#endif
sin->sin_port = sin6.sin6_port;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment