Skip to content

Commit 7c31110

Browse files
author
Noam Preil
committed
9front: allow file/open of directories
1 parent d41eeaf commit 7c31110

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ JANET_CORE_FN(cfun_io_fopen,
167167
}
168168
FILE *f = fopen((const char *)fname, (const char *)fmode);
169169
if (f != NULL) {
170-
#ifndef JANET_WINDOWS
170+
#if !(defined(JANET_WINDOWS) || defined(JANET_PLAN9))
171171
struct stat st;
172172
fstat(fileno(f), &st);
173173
if (S_ISDIR(st.st_mode)) {

0 commit comments

Comments
 (0)