Browse Source

Make LibuvEventPoll compatible with the latest libuv again

Nils Maier 10 years ago
parent
commit
3f2b5dce2f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/LibuvEventPoll.cc

+ 2 - 2
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)
   {