Compat with libuv 0.11 (Unstable)

Fixes #241
pull/251/head
Nils Maier 2014-07-01 13:23:23 +02:00
parent 0c8a2659ea
commit 0b6501043a
1 changed files with 11 additions and 0 deletions

View File

@ -66,10 +66,21 @@ namespace {
delete reinterpret_cast<T*>(handle);
}
#if !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10
static void timer_callback(uv_timer_t* handle, int status)
{
uv_stop(handle->loop);
}
#else // !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10
static void timer_callback(uv_timer_t* handle)
{
uv_stop(handle->loop);
}
#endif // !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10
}
namespace aria2 {