summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-19 12:53:58 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-19 12:53:58 +0000
commit0ec50a8d506a7d65ecbc937c7451126dd716c125 (patch)
tree1867959d41e8e833c83aad711020ebff8340fe6f /configure.ac
parent756592bf4d937f63829fcaaafb38e338417eb407 (diff)
2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Supported poll() for socket event notification. --event-poll can take value "poll". Fixed the bug that timeout for SocketCore::isReadable()/isWritable() is ignored when epoll is used. * src/OptionHandlerFactory.cc * src/a2io.h * src/prefs.h * src/SocketCore.h * src/Makefile.am * src/main.cc * src/PollEventPoll.h * src/SocketCore.cc * src/DownloadEngineFactory.cc * src/PollEventPoll.cc * src/prefs.cc * configure.ac
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2fd17abf..c01f4a75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -248,6 +248,7 @@ AC_CHECK_HEADERS([argz.h \
malloc.h \
netdb.h \
netinet/in.h \
+ poll.h \
stddef.h \
stdint.h \
stdio_ext.h \
@@ -394,6 +395,9 @@ fi
AM_CONDITIONAL([HAVE_MACH_ABSOLUTE_TIME],
[test "x$have_mach_absolute_time" = "xyes"])
+AC_CHECK_FUNCS([poll], [have_poll=yes])
+AM_CONDITIONAL([HAVE_POLL], [test "x$have_poll" = "xyes"])
+
case "$target" in
*mingw*)
dnl defined in ws2tcpip.h, but only if _WIN32_WINNT >= 0x0501