diff options
| author | Nils Maier <maierman@web.de> | 2015-03-23 13:18:21 +0100 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2015-06-24 13:59:44 +0200 |
| commit | 3f2b5dce2fc44b4aecb3c9fc459627a6d02075fb (patch) | |
| tree | e633c7e12e450d972e15b7ce05d511b63a2082db /src/LibuvEventPoll.cc | |
| parent | 11b25b7a5524510538afd7b734ebf50bec02fd0a (diff) | |
Make LibuvEventPoll compatible with the latest libuv again
Diffstat (limited to 'src/LibuvEventPoll.cc')
| -rw-r--r-- | src/LibuvEventPoll.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LibuvEventPoll.cc b/src/LibuvEventPoll.cc index 28199987..fa12e9d3 100644 --- a/src/LibuvEventPoll.cc +++ b/src/LibuvEventPoll.cc @@ -66,7 +66,7 @@ namespace { delete reinterpret_cast<T*>(handle); } -#if !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10 +#if !defined(UV_VERSION_MINOR) || (UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10) static void timer_callback(uv_timer_t* handle, int status) { @@ -78,7 +78,7 @@ namespace { timer_callback(handle, 0); } -#else // !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10 +#else // !defined(UV_VERSION_MINOR) || (UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10) static void timer_callback(uv_timer_t* handle) { |
