From 1b1845ebb35cce41b1ad3403cc82d3221cd60449 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Sat, 27 Feb 2021 08:25:29 +1000 Subject: aio: mingw doesn't have O_NOCTTY Signed-off-by: Steve Bennett --- jim-aio.c | 4 ++++ 1 file changed, 4 insertions(+) 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 }; -- cgit v1.1