diff --git a/include/epoll.h b/include/epoll.h index 21075a0..ce44302 100644 --- a/include/epoll.h +++ b/include/epoll.h @@ -42,6 +42,10 @@ struct epoll_event { epoll_data_t data; /* User data variable */ }; +#ifdef __cplusplus +extern "C" { +#endif + EPOLL_EXTERN epoll_t epoll_create(); EPOLL_EXTERN int epoll_close(epoll_t epoll_hnd); @@ -56,4 +60,8 @@ EPOLL_EXTERN int epoll_wait(epoll_t epoll_hnd, int maxevents, int timeout); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* EPOLL_H_ */