mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
d7bf974af4
commit
1a5e5830a7
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue