--- sysdeps/unix/opendir.c | 2 ++ 1 file changed, 2 insertions(+) --- a/sysdeps/unix/opendir.c +++ b/sysdeps/unix/opendir.c @@ -146,6 +146,7 @@ #ifdef __ASSUME_O_CLOEXEC # define check_have_o_cloexec(fd) 1 #else +#ifdef O_CLOEXEC static int check_have_o_cloexec (int fd) { @@ -154,6 +155,7 @@ return __have_o_cloexec > 0; } #endif +#endif DIR *