]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- Add TELL64() hack #ifdef to FreeBSD, Apple and BSDI
authorMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 20:06:55 +0000 (20:06 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 20:06:55 +0000 (20:06 +0000)
Someone with BSDs, please test this!

Misc/NEWS
Objects/fileobject.c

index 262d87ef8f9069dc6366bf51493687c32a592298..48c84b6ed10d38fbc2ed84ee754880242a1c77f2 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -48,6 +48,7 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=<id>&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?
 =========================
index b8b47f887adb12b5f83d91873a35a76d5ea69a42..ac11576d930faa4a777922136badd2301ab9353c 100644 (file)
@@ -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)