X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=ikvm-native%2Fos.c;h=9f2115f712ba6c2726969e963ebe4aa246048529;hb=c9afd924fdbe70a69ab9960c379f280ecbb3a778;hp=cc90658c76ad7e58d5a7355d2ae16a8e842d8e5a;hpb=dc34455f9fb0f0c9497b3dd6944dc9b4be36c735;p=mono.git diff --git a/ikvm-native/os.c b/ikvm-native/os.c index cc90658c76a..9f2115f712b 100644 --- a/ikvm-native/os.c +++ b/ikvm-native/os.c @@ -57,6 +57,7 @@ } #else #include + #include #include #include "jni.h" @@ -94,6 +95,11 @@ 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