chiark
/
gitweb
/
~mdw
/
preload-hacks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 1.2.3.
[preload-hacks]
/
uopen.c
diff --git
a/uopen.c
b/uopen.c
index 3c0d1d41717c5a23a21b14ae82b9d49013289fa5..22b09db5a15cc5cd6eec8cee11ed9c5f13750ddb 100644
(file)
--- a/
uopen.c
+++ b/
uopen.c
@@
-42,6
+42,11
@@
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/stat.h>
#include <sys/un.h>
+#ifndef SUN_LEN
+# define SUN_LEN (sun) \
+ (strlen((sun)->sun_path) + offsetof(struct sockaddr_un, sun_path))
+#endif
+
/*----- Import the real versions of functions -----------------------------*/
/* The list of functions to immport. */
/*----- Import the real versions of functions -----------------------------*/
/* The list of functions to immport. */