summaryrefslogtreecommitdiff
path: root/socketutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'socketutils.c')
-rw-r--r--socketutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socketutils.c b/socketutils.c
index d61911877..b8a285571 100644
--- a/socketutils.c
+++ b/socketutils.c
@@ -21,7 +21,7 @@
#include <sys/un.h>
#ifndef UNIX_PATH_MAX
-# define UNIX_PATH_MAX sizeof(((struct sockaddr_un *) 0)->sun_path)
+# define UNIX_PATH_MAX sizeof_field(struct sockaddr_un, sun_path)
#endif
#include "xstring.h"