mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-16 08:42:20 +02:00
[MINOR] use 'is_set' instead of 'isset' in struct poller
'isset' was defined as a macro in /usr/include/sys/param.h, and it breaks build on at least OpenBSD.
This commit is contained in:
@@ -54,7 +54,7 @@ REGPRM3 static int kqev_del(struct kevent *kev, const int fd, const int dir)
|
||||
/*
|
||||
* Returns non-zero if direction <dir> is already set for <fd>.
|
||||
*/
|
||||
REGPRM2 static int __fd_isset(const int fd, int dir)
|
||||
REGPRM2 static int __fd_is_set(const int fd, int dir)
|
||||
{
|
||||
return FD_ISSET(fd, fd_evts[dir]);
|
||||
}
|
||||
@@ -220,7 +220,7 @@ int kqueue_register(struct poller *p)
|
||||
p->term = kqueue_term;
|
||||
p->poll = kqueue_poll;
|
||||
|
||||
p->isset = __fd_isset;
|
||||
p->is_set = __fd_is_set;
|
||||
p->cond_s = p->set = __fd_set;
|
||||
p->cond_c = p->clr = __fd_clr;
|
||||
p->clo = p->rem = __fd_rem;
|
||||
|
||||
Reference in New Issue
Block a user