bug:
28192631
Change-Id: I423d5e79aacfbe82e22d095ffbfd3eefedbb484b
/* posix lseek() */
JNIEXPORT jlong JVM_Lseek(jint fd, jlong offset, jint whence) {
+#if !defined(__APPLE__)
// NOTE: Using TEMP_FAILURE_RETRY here is busted for LP32 on glibc - the return
// value will be coerced into an int32_t.
//
// lseek64 isn't specified to return EINTR so it shouldn't be necessary
// anyway.
return lseek64(fd, offset, whence);
+#else
+ // NOTE: This code is compiled for Mac OS but isn't ever run on that
+ // platform.
+ return lseek(fd, offset, whence);
+#endif
}
/*