diff --git a/src/lib/ares_event_wake_pipe.c b/src/lib/ares_event_wake_pipe.c index a2cd6f60..63b3c44c 100644 --- a/src/lib/ares_event_wake_pipe.c +++ b/src/lib/ares_event_wake_pipe.c @@ -94,9 +94,9 @@ static ares_pipeevent_t *ares_pipeevent_init(void) } # endif -# ifdef O_CLOEXEC - fcntl(p->filedes[0], F_SETFD, O_CLOEXEC); - fcntl(p->filedes[1], F_SETFD, O_CLOEXEC); +# ifdef FD_CLOEXEC + fcntl(p->filedes[0], F_SETFD, FD_CLOEXEC); + fcntl(p->filedes[1], F_SETFD, FD_CLOEXEC); # endif # endif