]> granicus.if.org Git - python/commitdiff
Tsk, tsk, tsk. Treat FreeBSD the same as the other BSDs when defining
authorGuido van Rossum <guido@python.org>
Tue, 9 Jan 2001 02:00:11 +0000 (02:00 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 9 Jan 2001 02:00:11 +0000 (02:00 +0000)
a fallback for TELL64.  Fixes SF Bug #128119.

Objects/fileobject.c

index 43b311ef8accca72ad69292471597f45a9bb08b6..430ec468dc92c7c1f1ff84b1254fac62fe15b0c8 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__) || defined(_HAVE_BSDI) || defined(__APPLE__)
+#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)