From 6a73e3afbf2ab7da290a5ecee1dbae30ce99a2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Wed, 3 Feb 2010 23:28:38 +0100 Subject: [PATCH] s3:vfs_scannedonly: fix a build issue on IRIX and HP-UX this is a cherry-pick of ae95e8028c294ee1e2dc66a7a62d006572142629 --- source3/modules/vfs_scannedonly.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c index 0e32a6f..12077f3 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; -- 1.7.1