diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -388,6 +388,10 @@ rb_io_wait_writable(f) } } +#ifndef S_ISREG +# define S_ISREG(m) ((m & S_IFMT) == S_IFREG) +#endif + static int wsplit_p(OpenFile *fptr) { @@ -1061,10 +1065,6 @@ rb_io_fread(ptr, len, f) return io_fread(ptr, len, &of); } -#ifndef S_ISREG -# define S_ISREG(m) ((m & S_IFMT) == S_IFREG) -#endif - #define SMALLBUF 100 static long |