diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-04-11 07:57:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-04-11 07:57:23 (GMT) |
commit | eebc70a77ce8075c80f14b5e5a1d1fdafba8e4fd (patch) | |
tree | 1919582a206a7becb3419238f933b7a75d769120 /win | |
parent | 2ffd22efd1279d41b6a871510d564e8a5151a948 (diff) | |
parent | 5c0e1075afd1c466ed8ba3475784cee32172808d (diff) | |
download | tcl-eebc70a77ce8075c80f14b5e5a1d1fdafba8e4fd.zip tcl-eebc70a77ce8075c80f14b5e5a1d1fdafba8e4fd.tar.gz tcl-eebc70a77ce8075c80f14b5e5a1d1fdafba8e4fd.tar.bz2 |
Fix [e155cedf33]: Error-handling in TclGetOpenMode().
Add O_ACCMODE fow Windows, in case it is not defined
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinPort.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h index 9eb949b..09a0ee5 100644 --- a/win/tclWinPort.h +++ b/win/tclWinPort.h @@ -345,6 +345,9 @@ typedef DWORD_PTR * PDWORD_PTR; #ifndef R_OK # define R_OK 04 #endif +#ifndef O_ACCMODE +# define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) +#endif /* * Define macros to query file type bits, if they're not already |