summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-05-11 09:28:29 +0000
committerArthur de Jong <arthur@arthurdejong.org>2012-05-11 09:28:29 +0000
commit0f7318260f5355c777861f3639afe1b4692692a4 (patch)
tree54fa2d72ed1724114e40ba2e1e49d558294ccfd1 /compat
parentddde9ba4a0d28452aeb5bf6e76b5e71f6b417701 (diff)
fix fallback definition of SUN_LEN() (fixes r1686)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1688 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'compat')
-rw-r--r--compat/socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/socket.h b/compat/socket.h
index 84eaf91..9e44b95 100644
--- a/compat/socket.h
+++ b/compat/socket.h
@@ -28,7 +28,7 @@
/* provide a definition for SUN_LEN for systems without it */
#ifndef SUN_LEN
-#define SUN_LEN(addr) (sizeof((addr).sun_family)+strlen((addr).sun_path)+1)
+#define SUN_LEN(addr) (sizeof((addr)->sun_family)+strlen((addr)->sun_path)+1)
#endif /* not SUN_LEN */
#endif /* not COMPAT__SOCKET_H */