NaCl runtime fixes
[mono.git] / mono / io-layer / shared.c
index 2bd47b2059b498b83af4d67b84ebaba256d62104..ed9bb1fb21178c6d5ec1f8a653ac85c56729e8d0 100644 (file)
@@ -18,7 +18,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#ifdef HAVE_SYS_SEM_H
+#if defined(HAVE_SYS_SEM_H) && !(defined(__native_client__) && defined(__GLIBC__))
 #  include <sys/sem.h>
 #else
 #  define DISABLE_SHARED_HANDLES
@@ -151,6 +151,12 @@ _wapi_shm_detach (_wapi_shm_t type)
        g_free (wapi_storage [type]);
 }
 
+gboolean
+_wapi_shm_enabled (void)
+{
+       return FALSE;
+}
+
 #else
 /*
  * Use POSIX shared memory if possible, it is simpler, and it has the advantage that