diff options
author | Steve Bennett <steveb@workware.net.au> | 2021-02-27 08:25:29 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2021-02-27 08:26:38 +1000 |
commit | 1b1845ebb35cce41b1ad3403cc82d3221cd60449 (patch) | |
tree | 58d6213278f25e67fb4a42ba4f60396454f89747 | |
parent | 4ecf23a4d92db9ba98a07dfb94973c4db1ced027 (diff) | |
download | jimtcl-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>
-rw-r--r-- | jim-aio.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 }; |