s3:vfs_scannedonly: fix build on HP-UX
authorBjörn Jacke <bj@sernet.de>
Wed, 3 Feb 2010 22:28:38 +0000 (23:28 +0100)
committerBjörn Jacke <bj@sernet.de>
Thu, 4 Feb 2010 09:37:17 +0000 (10:37 +0100)
source3/modules/vfs_scannedonly.c

index 20c54fbd25cbe295d0902b715da1e7daf5cf1bd9..42e9aeccdac907a1fc9a080aec6c0d1f96ff473a 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;