Commit a303e3e4 authored by Elizabeth Smith's avatar Elizabeth Smith Committed by Tudor Bosman

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
parent 5ed20b59
...@@ -28,9 +28,17 @@ ...@@ -28,9 +28,17 @@
#include <vector> #include <vector>
extern "C" { extern "C" {
#ifndef _MSC_VER
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/socket.h> #include <sys/socket.h>
#else
#include <winsock2.h>
#include <ws2tcpip.h>
// missing in socket headers
#define sa_family_t ADDRESS_FAMILY
#endif
#include <sys/types.h> #include <sys/types.h>
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment