mirror of https://github.com/aria2/aria2
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed compile error without libcares when epoll is available. * src/EpollEventPoll.ccpull/1/head
parent
abae62908f
commit
01b3968f92
|
@ -1,3 +1,8 @@
|
|||
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed compile error without libcares when epoll is available.
|
||||
* src/EpollEventPoll.cc
|
||||
|
||||
2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Included fstream instead of iostream.
|
||||
|
|
|
@ -454,11 +454,13 @@ bool EpollEventPoll::addEvents(sock_t socket, Command* command,
|
|||
return addEvents(socket, CommandEvent(command, epEvents));
|
||||
}
|
||||
|
||||
#ifdef ENABLE_ASYNC_DNS
|
||||
bool EpollEventPoll::addEvents(sock_t socket, Command* command, int events,
|
||||
const SharedHandle<AsyncNameResolver>& rs)
|
||||
{
|
||||
return addEvents(socket, ADNSEvent(rs, command, socket, events));
|
||||
}
|
||||
#endif // ENABLE_ASYNC_DNS
|
||||
|
||||
bool EpollEventPoll::deleteEvents(sock_t socket,
|
||||
const EpollEventPoll::Event& event)
|
||||
|
@ -496,11 +498,13 @@ bool EpollEventPoll::deleteEvents(sock_t socket,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_ASYNC_DNS
|
||||
bool EpollEventPoll::deleteEvents(sock_t socket, Command* command,
|
||||
const SharedHandle<AsyncNameResolver>& rs)
|
||||
{
|
||||
return deleteEvents(socket, ADNSEvent(rs, command, socket, 0));
|
||||
}
|
||||
#endif // ENABLE_ASYNC_DNS
|
||||
|
||||
bool EpollEventPoll::deleteEvents(sock_t socket, Command* command,
|
||||
EventPoll::EventType events)
|
||||
|
|
Loading…
Reference in New Issue