From: Moshe Zadka Date: Fri, 30 Mar 2001 20:06:55 +0000 (+0000) Subject: - Add TELL64() hack #ifdef to FreeBSD, Apple and BSDI X-Git-Tag: v2.0.1c1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c322667a00baac2c38c18b9a4b2c7dd250771dc7;p=thirdparty%2FPython%2Fcpython.git - Add TELL64() hack #ifdef to FreeBSD, Apple and BSDI Someone with BSDs, please test this! --- diff --git a/Misc/NEWS b/Misc/NEWS index 262d87ef8f90..48c84b6ed10d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -48,6 +48,7 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=&group_id=5470&atid - Importing should now be safe with multiple Py_Initialize/Py_Finalize sequences. +- Add TELL64() hack #ifdef to FreeBSD, Apple and BSDI What's New in Python 2.0? ========================= diff --git a/Objects/fileobject.c b/Objects/fileobject.c index b8b47f887adb..ac11576d930f 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -58,7 +58,7 @@ /* define the appropriate 64-bit capable tell() function */ #if defined(MS_WIN64) #define TELL64 _telli64 -#elif defined(__NetBSD__) || defined(__OpenBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(_HAVE_BSDI) || defined(__APPLE__) /* NOTE: this is only used on older NetBSD prior to f*o() funcions */ #define TELL64(fd) lseek((fd),0,SEEK_CUR)