mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
[BUILD] declare epoll_* as static when using our own functions
We will have to share this code among several implementations.
This commit is contained in:
parent
9f195293de
commit
b40d42006c
2 changed files with 7 additions and 6 deletions
|
|
@ -90,9 +90,10 @@ struct epoll_event {
|
|||
#define __NR_epoll_wait 256
|
||||
#endif
|
||||
|
||||
extern int epoll_create(int size);
|
||||
extern int epoll_ctl(int epfd, int op, int fd, struct epoll_event * event);
|
||||
extern int epoll_wait(int epfd, struct epoll_event * events, int maxevents, int timeout);
|
||||
/* Those are our self-defined functions */
|
||||
static int epoll_create(int size);
|
||||
static int epoll_ctl(int epfd, int op, int fd, struct epoll_event * event);
|
||||
static int epoll_wait(int epfd, struct epoll_event * events, int maxevents, int timeout);
|
||||
|
||||
#endif /* _COMMON_EPOLL_H */
|
||||
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@
|
|||
#include <common/epoll.h>
|
||||
#include <errno.h>
|
||||
#include <sys/syscall.h>
|
||||
_syscall1 (int, epoll_create, int, size);
|
||||
_syscall4 (int, epoll_ctl, int, epfd, int, op, int, fd, struct epoll_event *, event);
|
||||
_syscall4 (int, epoll_wait, int, epfd, struct epoll_event *, events, int, maxevents, int, timeout);
|
||||
static _syscall1 (int, epoll_create, int, size);
|
||||
static _syscall4 (int, epoll_ctl, int, epfd, int, op, int, fd, struct epoll_event *, event);
|
||||
static _syscall4 (int, epoll_wait, int, epfd, struct epoll_event *, events, int, maxevents, int, timeout);
|
||||
#else
|
||||
#include <sys/epoll.h>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue