Add a compatibility shim for working with libevent on MSVC
Summary: MSVC builds of libevent expect `evutil_socket_t` to be `HANDLE` values, but Folly, HHVM, and Thrift all use them as file descriptors. This adds a `folly_event_set` function that always expects a file descriptor rather than a socket. This also changes the places in Folly that use it. Reviewed By: mzlee, yfeldblum Differential Revision: D2874655 fbshipit-source-id: 66cfd86fd69a9fbac30d150445e4814cd5ca799e
Showing
folly/portability/Event.h
0 → 100644
Please register or sign in to comment