diff options
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/unix.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h index 5da925c4..bb4d063d 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); |