--- libev/ev.c 2008/04/06 12:44:49 1.221 +++ libev/ev.c 2008/04/06 12:45:58 1.222 @@ -271,7 +271,13 @@ #if EV_USE_EVENTFD /* our minimum requirement is glibc 2.7 which has the stub, but not the header */ # include +# ifdef __cplusplus +extern "C" { +# endif int eventfd (unsigned int initval, int flags); +# ifdef __cplusplus +} +# endif #endif /**/