I'm trying to build my library but a file called evutil.c fom libevent is giving me a hard time.
libevent/evutil.c: error: implicit declaration of function 'pipe2' is invalid in C99
The code involved is:
if (pipe2(fd, O_NONBLOCK|O_CLOEXEC) == 0)
return 0;
I can't update my code to c11 right now. How should I change the code to not get this error anymore?