Skip to content

Commit

Permalink
Merge pull request libevent#97 from JoakimSoderberg/openwrt_fixes
Browse files Browse the repository at this point in the history
BUGFIX: Fix compilation on systems with EPOLLRDHUP undefined.
  • Loading branch information
nmathewson committed Feb 24, 2014
2 parents f665d5c + ff26633 commit f24cba3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
#include "evmap-internal.h"
#include "changelist-internal.h"
#include "time-internal.h"

/* Since Linux 2.6.17, epoll is able to report about peer half-closed connection
using special EPOLLRDHUP flag on a read event.
*/
#if !defined(EPOLLRDHUP)
#define EPOLLRDHUP 0
#endif

#include "epolltable-internal.h"

#if defined(EVENT__HAVE_SYS_TIMERFD_H) && \
Expand All @@ -72,13 +80,6 @@
#define USING_TIMERFD
#endif

/* Since Linux 2.6.17, epoll is able to report about peer half-closed connection
using special EPOLLRDHUP flag on a read event.
*/
#if !defined(EPOLLRDHUP)
#define EPOLLRDHUP 0
#endif

struct epollop {
struct epoll_event *events;
int nevents;
Expand Down

0 comments on commit f24cba3

Please sign in to comment.