diff options
Diffstat (limited to 'polyp/socket-server.c')
-rw-r--r-- | polyp/socket-server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/polyp/socket-server.c b/polyp/socket-server.c index b7e4feda..c27979da 100644 --- a/polyp/socket-server.c +++ b/polyp/socket-server.c @@ -36,6 +36,10 @@ #endif #ifdef HAVE_SYS_UN_H #include <sys/un.h> +#ifndef SUN_LEN +#define SUN_LEN(ptr) \ + ((size_t)(((struct sockaddr_un *) 0)->sun_path) + strlen((ptr)->sun_path)) +#endif #endif #ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> |