summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */