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

Guido van Rossum python-dev@python.org
Thu, 21 Sep 2000 15:15:32 -0700


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

Modified Files:
	fileobject.c 
Log Message:
Untested patch by Ty Sarna to make TELL64 work on older NetBSD systems.
According to Justin Pettit, this also works on OpenBSD, so I've added
that symbol as well.


Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.87
retrieving revision 2.88
diff -C2 -r2.87 -r2.88
*** fileobject.c	2000/09/01 23:29:27	2.87
--- fileobject.c	2000/09/21 22:15:29	2.88
***************
*** 61,66 ****
  
  /* define the appropriate 64-bit capable tell() function */
! #ifdef MS_WIN64
! #	define TELL64 _telli64
  #endif
  
--- 61,70 ----
  
  /* define the appropriate 64-bit capable tell() function */
! #if defined(MS_WIN64)
! #define TELL64 _telli64
! #elif defined(__NetBSD__) || defined(__OpenBSD__)
! /* NOTE: this is only used on older
!    NetBSD prior to f*o() funcions */
! #define TELL64(fd) lseek((fd),0,SEEK_CUR)
  #endif