summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-02-03 23:28:38 +0100
committerKarolin Seeger <kseeger@samba.org>2010-06-18 08:33:33 +0200
commit0d9db4b4ad2bd32c461661d641484f35affe1856 (patch)
tree26d459fcfaa43ae2d472d87f5e13f070ade215fa
parent5e6dbbb3ffbb388f8a934c8ee9a9c15f68cb50a5 (diff)
downloadsamba-0d9db4b4ad2bd32c461661d641484f35affe1856.tar.gz
s3:vfs_scannedonly: fix a build issue on IRIX and HP-UX
this is a cherry-pick of ae95e8028c294ee1e2dc66a7a62d006572142629 (cherry picked from commit 4a7f1c92f7a1471f5edf06736835a5dc979af3f7)
-rw-r--r--source3/modules/vfs_scannedonly.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c
index 0e32a6f34fc..12077f374da 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;