summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-05-10 12:48:39 +0200
committerlouiz’ <louiz@louiz.org>2016-05-10 12:50:05 +0200
commitce798b1e8cfce7df69e0e91400c96090447a5ea8 (patch)
treee5ca37b9ec82cadd396e5f256e00b33fd4aaedeb /louloulibs
parent06439fa2fc181d4ca1212cab530bee7e481df6af (diff)
downloadbiboumi-ce798b1e8cfce7df69e0e91400c96090447a5ea8.tar.gz
biboumi-ce798b1e8cfce7df69e0e91400c96090447a5ea8.tar.bz2
biboumi-ce798b1e8cfce7df69e0e91400c96090447a5ea8.tar.xz
biboumi-ce798b1e8cfce7df69e0e91400c96090447a5ea8.zip
Fix build with POLLER=POLL
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/network/poller.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/louloulibs/network/poller.cpp b/louloulibs/network/poller.cpp
index 26e5a8f..959567e 100644
--- a/louloulibs/network/poller.cpp
+++ b/louloulibs/network/poller.cpp
@@ -28,8 +28,10 @@ Poller::Poller()
Poller::~Poller()
{
+#if POLLER == EPOLL
if (this->epfd > 0)
::close(this->epfd);
+#endif
}
void Poller::add_socket_handler(SocketHandler* socket_handler)