mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-02 11:33:21 +00: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
@ -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 New Issue
Block a user