1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Use our own SUN_LEN if libc doesn't provide it.

This commit is contained in:
Martin Mares
2000-06-16 23:12:47 +00:00
parent 365211d588
commit 4daf03e513
3 changed files with 14 additions and 5 deletions

View File

@@ -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);