Add a compatibility shim for working with libevent on MSVC
[folly.git] / folly / io / async / EventHandler.h
index 18493304055d15daffaf47958b67a7019aeead7b..af50c36eaec7a475a044c954e7557c78e6c16922 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <glog/logging.h>
 #include <folly/io/async/EventUtil.h>
+#include <folly/portability/Event.h>
 #include <boost/noncopyable.hpp>
 #include <stddef.h>
 
@@ -177,7 +178,7 @@ class EventHandler : private boost::noncopyable {
 
   void setEventBase(EventBase* eventBase);
 
-  static void libeventCallback(int fd, short events, void* arg);
+  static void libeventCallback(libevent_fd_t fd, short events, void* arg);
 
   struct event event_;
   EventBase* eventBase_;