diff --git a/src/core/ev.c b/src/core/ev.c index 3d4964e8..f6d46a8d 100644 --- a/src/core/ev.c +++ b/src/core/ev.c @@ -32,6 +32,7 @@ #ifdef JANET_EV #include +#include #ifdef JANET_WINDOWS #include #include @@ -44,7 +45,6 @@ #include #include #include -#include #include #include #include @@ -3293,7 +3293,7 @@ static JanetFile *get_file_for_stream(JanetStream *stream) { } if (index == 0) return NULL; /* duplicate handle when converting stream to file */ - #ifdef JANET_WINDOWS +#ifdef JANET_WINDOWS int htype = 0; if (fmt[0] == 'r' && fmt[1] == '+') { htype = _O_RDWR; @@ -3312,7 +3312,7 @@ static JanetFile *get_file_for_stream(JanetStream *stream) { /* _close(fd); */ return NULL; } - #else +#else int newHandle = dup(stream->handle); if (newHandle < 0) return NULL; FILE *f = fdopen(newHandle, fmt); @@ -3320,7 +3320,7 @@ static JanetFile *get_file_for_stream(JanetStream *stream) { close(newHandle); return NULL; } - #endif +#endif return janet_makejfile(f, flags); }