Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
e2094eed
Commit
e2094eed
authored
May 25, 2019
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Windows build: Include proper socket headers.
parent
062aa419
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
rpc-twoparty-test.c++
c++/src/capnp/rpc-twoparty-test.c++
+9
-0
rpc-twoparty.c++
c++/src/capnp/rpc-twoparty.c++
+9
-0
No files found.
c++/src/capnp/rpc-twoparty-test.c++
View file @
e2094eed
...
...
@@ -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
{
...
...
c++/src/capnp/rpc-twoparty.c++
View file @
e2094eed
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment