]> granicus.if.org Git - python/commitdiff
Donn Cave <donn@oz.net>:
authorFred Drake <fdrake@acm.org>
Fri, 6 Oct 2000 20:42:33 +0000 (20:42 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 6 Oct 2000 20:42:33 +0000 (20:42 +0000)
Fix large file support for BeOS.

This closes SourceForge patch #101773.  Refer to the patch discussion for
information on possible alternate fixes.

Objects/fileobject.c

index 2978d259d90f48c57e6323729fbbc3c04f8b5064..b8b47f887adb12b5f83d91873a35a76d5ea69a42 100644 (file)
@@ -254,6 +254,8 @@ _portable_fseek(FILE *fp, off_t offset, int whence)
        return fseeko(fp, offset, whence);
 #elif defined(HAVE_FSEEK64)
        return fseek64(fp, offset, whence);
+#elif defined(__BEOS__)
+       return _fseek(fp, offset, whence);
 #elif defined(HAVE_LARGEFILE_SUPPORT) && SIZEOF_FPOS_T >= 8 
        /* lacking a 64-bit capable fseek() (as Win64 does) use a 64-bit capable
                fsetpos() and tell() to implement fseek()*/