summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;