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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user