From 0dbb43436b849bbbc8c3f8f055e01d80936c206b Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Thu, 11 Apr 2024 07:59:01 +0000 Subject: Add O_ACCMODE fow Windows, in case it is not defined --- win/tclWinPort.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v0.12