diff options
| author | Nils Maier <maierman@web.de> | 2014-07-01 13:23:23 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2014-07-01 13:48:19 +0200 |
| commit | 0b6501043a88dedd3936dce4b10bacd96e63909b (patch) | |
| tree | 07ab6107ad88c7b14ecfd95aeba98b67e0414caf /src/LibuvEventPoll.cc | |
| parent | 0c8a2659ea8c52f0e91f0eec28c3250c54a6460a (diff) | |
Compat with libuv 0.11 (Unstable)
Fixes #241
Diffstat (limited to 'src/LibuvEventPoll.cc')
| -rw-r--r-- | src/LibuvEventPoll.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/LibuvEventPoll.cc b/src/LibuvEventPoll.cc index 201cb384..09d314b6 100644 --- a/src/LibuvEventPoll.cc +++ b/src/LibuvEventPoll.cc @@ -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 { |
