[core] fix compile error on Solaris (fixes #2959)

(thx pyhalov)

x-ref:
  "Release 1.4.54 does not compile on an Open Solaris clone"
  https://redmine.lighttpd.net/issues/2959
This commit is contained in:
Glenn Strauss 2019-05-30 00:19:06 -04:00
parent 51a46f0211
commit 32a8f0b3b5
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ static int fdevent_solaris_port_event_del(fdevents *ev, fdnode *fdn) {
}
static int fdevent_solaris_port_event_set(fdevents *ev, fdnode *fdn, int events) {
int fd = fdn->fdn_ndx = fdn->fd;
int fd = fdn->fde_ndx = fdn->fd;
intptr_t ud = events & (POLLIN|POLLOUT);
return port_associate(ev->port_fd,PORT_SOURCE_FD,fd,(int)ud,(void*)ud);
}