- added a check for broken RH5 include files. With the standard RH5
[kai/samba.git] / source3 / locking / shmem_sysv.c
index e415c2ebc5f750e184ee4b3e68fba4edb06ace52..b9d45949479ccd4f8de768adc1bf117042948020 100644 (file)
@@ -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();