[Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.89,2.90

Fred L. Drake python-dev@python.org
Fri, 6 Oct 2000 13:42:36 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv20549/Objects

Modified Files:
	fileobject.c 
Log Message:

Donn Cave <donn@oz.net>:
Fix large file support for BeOS.

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


Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.89
retrieving revision 2.90
diff -C2 -r2.89 -r2.90
*** fileobject.c	2000/09/26 05:46:01	2.89
--- fileobject.c	2000/10/06 20:42:33	2.90
***************
*** 255,258 ****
--- 255,260 ----
  #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