Commit 1a5e5830 authored by Guido van Rossum's avatar Guido van Rossum

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.
parent d7bf974a
......@@ -60,8 +60,12 @@
#endif
/* define the appropriate 64-bit capable tell() function */
#ifdef MS_WIN64
# define TELL64 _telli64
#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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment