summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-11 08:00:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-11 08:00:53 (GMT)
commit7c3240cd700c6b3d9be29702e91193bca5538ae2 (patch)
treef6a8be225575a3355d7fa5d5f127d24d077b96b4 /win
parent38c4752d1064cbdc175d6af813f0063ad5bb6750 (diff)
downloadtcl-7c3240cd700c6b3d9be29702e91193bca5538ae2.zip
tcl-7c3240cd700c6b3d9be29702e91193bca5538ae2.tar.gz
tcl-7c3240cd700c6b3d9be29702e91193bca5538ae2.tar.bz2
Add O_ACCMODE fow Windows, in case it is not defined
Diffstat (limited to 'win')
-rw-r--r--win/tclWinPort.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index f549420..c17cada 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