Quellcode durchsuchen

Add backward-compatible libuv defs

Nils Maier vor 11 Jahren
Ursprung
Commit
590aa21c68
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      src/LibuvEventPoll.cc

+ 5 - 0
src/LibuvEventPoll.cc

@@ -73,6 +73,11 @@ namespace {
     uv_stop(handle->loop);
   }
 
+  static void timer_callback(uv_timer_t* handle)
+  {
+    timer_callback(handle, 0);
+  }
+
 #else // !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10
 
   static void timer_callback(uv_timer_t* handle)