Add a compatibility shim for working with libevent on MSVC
[folly.git] / folly / io / async / AsyncTimeout.h
index 62b104551dbc5ff3b0ccf0b6d21a9d2dc8b72d4e..0c86ef746d305dea7b1ebefdb8932855ef9cfb4b 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <folly/io/async/TimeoutManager.h>
 
+#include <folly/portability/Event.h>
+
 #include <boost/noncopyable.hpp>
 #include <event.h>
 #include <memory>
@@ -219,7 +221,7 @@ class AsyncTimeout : private boost::noncopyable {
   );
 
  private:
-  static void libeventCallback(int fd, short events, void* arg);
+  static void libeventCallback(libevent_fd_t fd, short events, void* arg);
 
   struct event event_;