summaryrefslogtreecommitdiff
path: root/source3/include/local.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/local.h')
-rw-r--r--source3/include/local.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/local.h b/source3/include/local.h
index 10906d1ff1..0e2a927d2e 100644
--- a/source3/include/local.h
+++ b/source3/include/local.h
@@ -39,6 +39,11 @@
#define MAX_CONNECTIONS 127
#define MAX_OPEN_FILES 100
+/* Default size of shared memory used for share mode locking */
+#ifndef SHMEM_SIZE
+#define SHMEM_SIZE (1024*MAX_OPEN_FILES)
+#endif
+
/* the max number of connections that the smbstatus program will show */
#define MAXSTATUS 1000