diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-02 10:40:23 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-02 10:40:23 +0100 |
commit | 5402ba982fd8c9bb9ce7fab43ddabaa174ab0794 (patch) | |
tree | 812f534d2e39ccd345edac0975c732686b4d7ad5 /runtime/nsdpoll_ptcp.h | |
parent | a16c60e782ebed11787e0b5dbd73e83797771b3c (diff) | |
download | rsyslog-5402ba982fd8c9bb9ce7fab43ddabaa174ab0794.tar.gz rsyslog-5402ba982fd8c9bb9ce7fab43ddabaa174ab0794.tar.xz rsyslog-5402ba982fd8c9bb9ce7fab43ddabaa174ab0794.zip |
bugfix: failed to compile on systems without epoll support
Diffstat (limited to 'runtime/nsdpoll_ptcp.h')
-rw-r--r-- | runtime/nsdpoll_ptcp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/nsdpoll_ptcp.h b/runtime/nsdpoll_ptcp.h index 0708e489..cea2823d 100644 --- a/runtime/nsdpoll_ptcp.h +++ b/runtime/nsdpoll_ptcp.h @@ -27,8 +27,6 @@ #include "nsd.h" #if HAVE_SYS_EPOLL_H # include <sys/epoll.h> -#else - typedef void epoll_event_t; #endif typedef nsdpoll_if_t nsdpoll_ptcp_if_t; /* we just *implement* this interface */ /* a helper object to keep track of the epoll event records @@ -37,7 +35,9 @@ typedef nsdpoll_if_t nsdpoll_ptcp_if_t; /* we just *implement* this interface */ */ typedef struct nsdpoll_epollevt_lst_s nsdpoll_epollevt_lst_t; struct nsdpoll_epollevt_lst_s { +#if HAVE_SYS_EPOLL_H epoll_event_t event; +#endif int id; void *pUsr; nsd_ptcp_t *pSock; /* our associated netstream driver data */ |