summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-11 07:59:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-11 07:59:01 (GMT)
commitc8a312febef5f9cce37aed2cf5d9975437d80e25 (patch)
tree840ee113a29c0800ec17cc4d6fb4bf7b9fd4d513 /win
parent12cf9a5e58c41c6b5edcf26083cb3028b8f7715f (diff)
downloadtcl-c8a312febef5f9cce37aed2cf5d9975437d80e25.zip
tcl-c8a312febef5f9cce37aed2cf5d9975437d80e25.tar.gz
tcl-c8a312febef5f9cce37aed2cf5d9975437d80e25.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 5e7f9c3..ef6918f 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -355,6 +355,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