Merge pull request #572 from jack-pappas/sockets-ipproto
[mono.git] / ikvm-native / os.c
index cc90658c76ad7e58d5a7355d2ae16a8e842d8e5a..9f2115f712ba6c2726969e963ebe4aa246048529 100644 (file)
@@ -57,6 +57,7 @@
        }
 #else
        #include <gmodule.h>
+       #include <sys/types.h>
        #include <sys/mman.h>
        #include "jni.h"
 
 
        JNIEXPORT int JNICALL ikvm_msync(void* address, jint size)
        {
+#if defined(__native_client__) && defined(USE_NEWLIB)
+               g_assert_not_reached ();
+               return -1;
+#else
                return msync(address, size, MS_SYNC);
+#endif
        }
 #endif