--- libeio/eio.c 2018/02/20 06:05:19 1.148 +++ libeio/eio.c 2018/02/20 06:54:47 1.149 @@ -102,8 +102,6 @@ #undef PAGESIZE #define PAGESIZE 4096 /* GetSystemInfo? */ - #define O_CLOEXEC 0 - /* TODO: look at how perl does stat (non-sloppy), unlink (ro-files), utime, link */ #ifdef EIO_STRUCT_STATI64 @@ -329,6 +327,10 @@ # define PATH_MAX 0 #endif +#ifndef O_CLOEXEC + #define O_CLOEXEC 0 +#endif + #ifndef EIO_PATH_MIN # define EIO_PATH_MIN 8160 #endif