From 0f7318260f5355c777861f3639afe1b4692692a4 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 11 May 2012 09:28:29 +0000 Subject: 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 --- compat/socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compat/socket.h') 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 */ -- cgit v1.2.3