From: Elizabeth Smith Date: Thu, 10 Jul 2014 22:19:57 +0000 (-0700) Subject: MSVC includes for inet/sockets X-Git-Tag: v0.22.0~459 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a303e3e42c4146c04f637b5047cd399d67a6bc7a;p=folly.git 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 --- 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 }