diff options
author | sebres <sebres@users.sourceforge.net> | 2018-05-08 09:49:16 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2018-05-08 09:49:16 (GMT) |
commit | 78ee8c697e423a5b4718fabb53eef1c5f6a2a2b1 (patch) | |
tree | 56621e264162af5c4f27a4b99f134cee38f73223 /unix/tclUnixPort.h | |
parent | 0fc27b893e12027a6b5136fb96ba216b823f43e1 (diff) | |
download | tcl-78ee8c697e423a5b4718fabb53eef1c5f6a2a2b1.zip tcl-78ee8c697e423a5b4718fabb53eef1c5f6a2a2b1.tar.gz tcl-78ee8c697e423a5b4718fabb53eef1c5f6a2a2b1.tar.bz2 |
fixes [92564326a98b5510]: wrong x64-aligned handle from readdir64 by opendir/rewinddir/closedir, if HAVE_STRUCT_DIRENT64 used.
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r-- | unix/tclUnixPort.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 965014e..cc31bf9 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -60,9 +60,15 @@ #ifdef HAVE_STRUCT_DIRENT64 typedef struct dirent64 Tcl_DirEntry; # define TclOSreaddir readdir64 +# define TclOSopendir opendir64 +# define TclOSrewinddir rewinddir64 +# define TclOSclosedir closedir64 #else typedef struct dirent Tcl_DirEntry; # define TclOSreaddir readdir +# define TclOSopendir opendir +# define TclOSrewinddir rewinddir +# define TclOSclosedir closedir #endif #ifdef HAVE_TYPE_OFF64_T |