aboutsummaryrefslogtreecommitdiff
path: root/socket/sys/un.h
diff options
context:
space:
mode:
Diffstat (limited to 'socket/sys/un.h')
-rw-r--r--socket/sys/un.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket/sys/un.h b/socket/sys/un.h
index 02fc775..331f496 100644
--- a/socket/sys/un.h
+++ b/socket/sys/un.h
@@ -37,7 +37,7 @@ struct sockaddr_un
/* Evaluate to actual length of the `sockaddr_un' structure. */
-#define SUN_LEN(ptr) (((struct sockaddr_un *) 0)->sun_path \
+#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) \
+ strlen ((ptr)->sun_path))
__END_DECLS