aboutsummaryrefslogtreecommitdiff
path: root/jim-aio.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2021-02-27 08:25:29 +1000
committerSteve Bennett <steveb@workware.net.au>2021-02-27 08:26:38 +1000
commit1b1845ebb35cce41b1ad3403cc82d3221cd60449 (patch)
tree58d6213278f25e67fb4a42ba4f60396454f89747 /jim-aio.c
parent4ecf23a4d92db9ba98a07dfb94973c4db1ced027 (diff)
downloadjimtcl-1b1845ebb35cce41b1ad3403cc82d3221cd60449.zip
jimtcl-1b1845ebb35cce41b1ad3403cc82d3221cd60449.tar.gz
jimtcl-1b1845ebb35cce41b1ad3403cc82d3221cd60449.tar.bz2
aio: mingw doesn't have O_NOCTTY
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-aio.c')
-rw-r--r--jim-aio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/jim-aio.c b/jim-aio.c
index 5c46966..13c839e 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -1883,6 +1883,10 @@ static int JimAioOpenCommand(Jim_Interp *interp, int argc,
#ifndef JIM_ANSIC
if (*mode == 'R' || *mode == 'W') {
/* POSIX flags */
+ #ifndef O_NOCTTY
+ /* mingw doesn't support this flag */
+ #define O_NOCTTY 0
+ #endif
static const char * const modetypes[] = {
"RDONLY", "WRONLY", "RDWR", "APPEND", "BINARY", "CREAT", "EXCL", "NOCTTY", "TRUNC", NULL
};