Explorar o código

Make LibuvEventPoll compatible with the latest libuv again

Nils Maier %!s(int64=10) %!d(string=hai) anos
pai
achega
3f2b5dce2f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)
   {