]> granicus.if.org Git - python/commitdiff
Added _HAVE_BSDI and __APPLE__ to the list of platforms that require a
authorGuido van Rossum <guido@python.org>
Mon, 13 Nov 2000 19:48:22 +0000 (19:48 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 13 Nov 2000 19:48:22 +0000 (19:48 +0000)
hack for TELL64()...  Sounds like there's something else going on
really.  Does anybody have a clue I can buy?

Objects/fileobject.c

index 94c5bb0a1e7b6586ca78f47cee065d7a3e2938e4..61023dcc8614251e9cf03331f8b323a3c96290ac 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(_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)