From a303e3e42c4146c04f637b5047cd399d67a6bc7a Mon Sep 17 00:00:00 2001 From: Elizabeth Smith Date: Thu, 10 Jul 2014 15:19:57 -0700 Subject: [PATCH] MSVC includes for inet/sockets Summary: MSVC has all the sockets and internet functionality required except for one missing item - which can safely be defined to a windows specific type But it requires a different set of headers than on *nix systems Test Plan: fbconfig -r folly && fbmake runtests Reviewed By: delong.j@fb.com FB internal diff: D1413265 --- folly/detail/IPAddress.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/folly/detail/IPAddress.h b/folly/detail/IPAddress.h index ef8b85a6..a9ffe4d9 100644 --- a/folly/detail/IPAddress.h +++ b/folly/detail/IPAddress.h @@ -28,9 +28,17 @@ #include extern "C" { +#ifndef _MSC_VER #include #include #include +#else +#include +#include +// missing in socket headers +#define sa_family_t ADDRESS_FAMILY +#endif + #include } -- 2.34.1