diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-05-11 11:28:29 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-05-11 11:28:29 +0200 |
commit | 0f7318260f5355c777861f3639afe1b4692692a4 (patch) | |
tree | 54fa2d72ed1724114e40ba2e1e49d558294ccfd1 /compat/socket.h | |
parent | ddde9ba4a0d28452aeb5bf6e76b5e71f6b417701 (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/socket.h')
-rw-r--r-- | compat/socket.h | 2 |
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 */ |