header: make c++ friendly
This commit is contained in:
parent
06b399a21f
commit
da8e0a5f5f
@ -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_ */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user