X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/preload-hacks/blobdiff_plain/de6df72d8e430b6300da8fb4365a53757dd9f970..9111857cc67644ff89749d5919647b38033bb6fd:/uopen.c diff --git a/uopen.c b/uopen.c index 3c0d1d4..22b09db 100644 --- a/uopen.c +++ b/uopen.c @@ -42,6 +42,11 @@ #include #include +#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. */