~mdw
/
preload-hacks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
noip.c, uopen.c: Provide fallback implementation of `SUN_LEN'.
[preload-hacks]
/
noip.c
diff --git
a/noip.c
b/noip.c
index
aca7b75
..
b9c040b
100644
(file)
--- a/
noip.c
+++ b/
noip.c
@@
-57,6
+57,11
@@
#include <ifaddrs.h>
#include <netdb.h>
#include <ifaddrs.h>
#include <netdb.h>
+#ifndef SUN_LEN
+# define SUN_LEN (sun) \
+ (strlen((sun)->sun_path) + offsetof(struct sockaddr_un, sun_path))
+#endif
+
/*----- Data structures ---------------------------------------------------*/
/* Unix socket status values. */
/*----- Data structures ---------------------------------------------------*/
/* Unix socket status values. */