From: Björn Jacke Date: Wed, 3 Feb 2010 22:28:38 +0000 (+0100) Subject: s3:vfs_scannedonly: fix build on HP-UX X-Git-Tag: tdb-1.2.1~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae95e8028c294ee1e2dc66a7a62d006572142629;p=thirdparty%2Fsamba.git s3:vfs_scannedonly: fix build on HP-UX --- diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c index 20c54fbd25c..42e9aeccdac 100644 --- a/source3/modules/vfs_scannedonly.c +++ b/source3/modules/vfs_scannedonly.c @@ -53,6 +53,12 @@ #define SENDBUFFERSIZE 1450 +#ifndef SUN_LEN +#define SUN_LEN(sunp) ((size_t)((struct sockaddr_un *)0)->sun_path \ + + strlen((sunp)->sun_path)) +#endif + + struct Tscannedonly { int socket; int domain_socket;