* Updated to jitcache-arm-x86 branch d4f6023b26c5+d1b5b1c106ac
[cacao.git] / src / vm / os.hpp
index 66de93d5155630e879a91ecd66cb3e81a2b945bb..6a18dd71ddbda4d06b10735611f669a41a170e99 100644 (file)
@@ -341,6 +341,15 @@ inline size_t os::fread(void* ptr, size_t size, size_t nmemb, FILE* stream)
 #endif
 }
 
+inline static int system_fseek(FILE *stream, off_t offset, int whence)
+{
+#if defined(HAVE_FSEEK)
+       return fseek(stream, offset, whence);
+#else
+# error fseek not available
+#endif
+}
+
 inline void os::free(void* ptr)
 {
 #if defined(HAVE_FREE)