diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2016-06-29 21:12:21 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2016-06-29 21:12:21 -0400 |
commit | 5ce7b2df5c37521958dcd00a1afaa851ff068727 (patch) | |
tree | ae45239492494f8793dbe262915b374ac81d672c | |
parent | 416b5729fbb0a10fb91da1e02481b1dc695b5141 (diff) | |
download | lighttpd-git-5ce7b2df5c37521958dcd00a1afaa851ff068727.tar.gz |
[core] add declarations to fdevent.h (#2373)
(follow-up to 79bcfab0)
x-ref:
"FreeBSD build with libev broken"
https://redmine.lighttpd.net/issues/2373
-rw-r--r-- | src/fdevent.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fdevent.h b/src/fdevent.h index 6f38a8e6..cab04291 100644 --- a/src/fdevent.h +++ b/src/fdevent.h @@ -16,12 +16,14 @@ #if defined(HAVE_EPOLL_CTL) && defined(HAVE_SYS_EPOLL_H) # define USE_LINUX_EPOLL +struct epoll_event; /* declaration */ #endif /* MacOS 10.3.x has poll.h under /usr/include/, all other unixes * under /usr/include/sys/ */ #if defined HAVE_POLL && (defined(HAVE_SYS_POLL_H) || defined(HAVE_POLL_H)) # define USE_POLL +struct pollfd; /* declaration */ #endif #if defined HAVE_SELECT @@ -36,6 +38,7 @@ #if defined HAVE_SYS_DEVPOLL_H && defined(__sun) # define USE_SOLARIS_DEVPOLL +struct pollfd; /* declaration */ #endif #if defined HAVE_PORT_H && defined HAVE_PORT_CREATE && defined(__sun) @@ -45,13 +48,15 @@ #if defined HAVE_SYS_EVENT_H && defined HAVE_KQUEUE # define USE_FREEBSD_KQUEUE +struct kevent; /* declaration */ #endif #if defined HAVE_LIBEV # define USE_LIBEV +struct ev_loop; /* declaration */ #endif -struct server; +struct server; /* declaration */ typedef handler_t (*fdevent_handler)(struct server *srv, void *ctx, int revents); |