s3:vfs_scannedonly: fix a build issue on IRIX and HP-UX
authorBjörn Jacke <bj@sernet.de>
Wed, 3 Feb 2010 22:28:38 +0000 (23:28 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 17 Jun 2010 10:27:44 +0000 (12:27 +0200)
this is a cherry-pick of ae95e8028c294ee1e2dc66a7a62d006572142629

source3/modules/vfs_scannedonly.c

index 0e32a6f34fc0c48595aec821fd93f0095677ebea..12077f374da0dc49d83a7b27654c67dea73eb205 100644 (file)
 
 #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;