summaryrefslogtreecommitdiff
path: root/clientname.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-02-27 07:22:40 +0000
committerWayne Davison <wayned@samba.org>2004-02-27 07:22:40 +0000
commitac7aa92290cf67c4e9541c02e10b9f232928c588 (patch)
treeac36ae8593515037618b9371fbe9aa4cb679bcbb /clientname.c
parent0042f81894b84a15cea2d49968b5fc5d32f0a181 (diff)
downloadrsync-ac7aa92290cf67c4e9541c02e10b9f232928c588.tar.gz
rsync-ac7aa92290cf67c4e9541c02e10b9f232928c588.tar.bz2
rsync-ac7aa92290cf67c4e9541c02e10b9f232928c588.zip
Use new HAVE_SOCKADDR_SIN_LEN define (replaces HAVE_SOCKADDR_LEN).
Diffstat (limited to 'clientname.c')
-rw-r--r--clientname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientname.c b/clientname.c
index 661d4ab6..5dbaaf97 100644
--- a/clientname.c
+++ b/clientname.c
@@ -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;