Commit e2094eed authored by Kenton Varda's avatar Kenton Varda

Fix Windows build: Include proper socket headers.

parent 062aa419
......@@ -32,7 +32,16 @@
#include <kj/thread.h>
#include <kj/compat/gtest.h>
#include <kj/miniposix.h>
// Includes just for need SOL_SOCKET and SO_SNDBUF
#if _WIN32
#define WIN32_LEAN_AND_MEAN // ::eyeroll::
#include <winsock2.h>
#include <mswsock.h>
#include <kj/windows-sanity.h>
#else
#include <sys/socket.h>
#endif
// TODO(cleanup): Auto-generate stringification functions for union discriminants.
namespace capnp {
......
......@@ -23,7 +23,16 @@
#include "serialize-async.h"
#include <kj/debug.h>
#include <kj/io.h>
// Includes just for need SOL_SOCKET and SO_SNDBUF
#if _WIN32
#define WIN32_LEAN_AND_MEAN // ::eyeroll::
#include <winsock2.h>
#include <mswsock.h>
#include <kj/windows-sanity.h>
#else
#include <sys/socket.h>
#endif
namespace capnp {
......
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