From 4daf03e5138dea8e5c409ab20a07f35667caa89e Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 16 Jun 2000 23:12:47 +0000 Subject: Use our own SUN_LEN if libc doesn't provide it. --- sysdep/unix/unix.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdep/unix/unix.h') diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h index 5da925c..bb4d063 100644 --- a/sysdep/unix/unix.h +++ b/sysdep/unix/unix.h @@ -34,6 +34,10 @@ typedef struct sockaddr_in6 sockaddr; typedef struct sockaddr_in sockaddr; #endif +#ifndef SUN_LEN +#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) + strlen ((ptr)->sun_path)) +#endif + struct birdsock; void io_init(void); -- cgit v1.2.3