diff options
Diffstat (limited to 'source3/locking/shmem_sysv.c')
-rw-r--r-- | source3/locking/shmem_sysv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/locking/shmem_sysv.c b/source3/locking/shmem_sysv.c index e415c2ebc5..b9d4594947 100644 --- a/source3/locking/shmem_sysv.c +++ b/source3/locking/shmem_sysv.c @@ -542,6 +542,15 @@ struct shmem_ops *sysv_shm_open(int ronly) int i; int pid; + + +#ifdef LINUX + if (sizeof(shm_ds) == 52) { + DEBUG(0,("WARNING: You probably have a broken set of glibc2 include files - disabling sysv shared memory\n")); + return NULL; + } +#endif + read_only = ronly; shm_size = lp_shmem_size(); |