From b2344bf9d7f6441e48647656ddbd1f081312d4bd Mon Sep 17 00:00:00 2001 From: Lionello Lunesu Date: Wed, 30 Jul 2014 17:19:11 +0200 Subject: [PATCH] Fixed --config=libev build --- source/vibe/core/drivers/libev.d | 3 ++- source/vibe/core/drivers/native.d | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/drivers/libev.d b/source/vibe/core/drivers/libev.d index 91003a80f2..d6ff9497dc 100644 --- a/source/vibe/core/drivers/libev.d +++ b/source/vibe/core/drivers/libev.d @@ -218,7 +218,7 @@ final class LibevDriver : EventDriver { assert(false); } - private LibevTCPListener listenTCPGeneric(SOCKADDR)(int af, SOCKADDR* sock_addr, ushort port, void delegate(TCPConnection conn) connection_callback) + private LibevTCPListener listenTCPGeneric(SOCKADDR)(int af, SOCKADDR* sock_addr, ushort port, void delegate(TCPConnection conn) connection_callback, TCPListenOptions options) { auto listenfd = socket(af, SOCK_STREAM, 0); if( listenfd == -1 ){ @@ -483,6 +483,7 @@ final class LibevTCPConnection : TCPConnection { int m_eventsExpected = 0; Appender!(ubyte[]) m_writeBuffer; bool m_tcpNoDelay = false; + bool m_keepAlive = false; Duration m_readTimeout; } diff --git a/source/vibe/core/drivers/native.d b/source/vibe/core/drivers/native.d index 37908d1689..fb089d4818 100644 --- a/source/vibe/core/drivers/native.d +++ b/source/vibe/core/drivers/native.d @@ -9,7 +9,7 @@ module vibe.core.drivers.native; version (VibeLibevDriver) { import vibe.core.drivers.libev; - alias NativeEventDriver = Win32EventDriver; + alias NativeEventDriver = LibevDriver; } else version (VibeLibeventDriver) { import vibe.core.drivers.libevent2; alias NativeEventDriver = Libevent2Driver;