Index: apache-harmony-5.0-src-r916432/working_classlib/depends/build/defines.mk =================================================================== --- apache-harmony-5.0-src-r916432/working_classlib/depends/build/defines.mk (release 916432) +++ apache-harmony-5.0-src-r916432-gt2gb/working_classlib/depends/build/defines.mk (working copy) @@ -50,7 +50,7 @@ include $(HY_HDK)/build/make/platform/$(HY_PLATFORM).mk -DEFINES += -D_REENTRANT +DEFINES += -D_REENTRANT -D_FILE_OFFSET_BITS=64 ifeq ($(HY_CFG),release) OPT += $(HYRELEASECFLAGS) Index: apache-harmony-5.0-src-r916432/working_classlib/modules/luni/src/main/native/luni/shared/OSFileSystem.c =================================================================== --- apache-harmony-5.0-src-r916432/working_classlib/modules/luni/src/main/native/luni/shared/OSFileSystem.c (release 916432) +++ apache-harmony-5.0-src-r916432-gt2gb/working_classlib/modules/luni/src/main/native/luni/shared/OSFileSystem.c (working copy) @@ -138,7 +138,7 @@ return -1; } - return (jlong) hyfile_seek ((IDATA) fd, (IDATA) offset, hywhence); + return (jlong) hyfile_seek ((IDATA) fd, (I_64) offset, hywhence); } /**