}
#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