Skip to content

Commit cf1e1ab

Browse files
xunnanxufacebook-github-bot
authored andcommitted
fix build for windows (#366)
Summary: Pull Request resolved: #366 windows has the call in a different header so need to handle that Differential Revision: D47562408 fbshipit-source-id: 31c48f72c6b8984ba390edee281a72d75faa4a90
1 parent 6d8b511 commit cf1e1ab

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

gloo/common/utils.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
*/
88

99
#include <system_error>
10+
11+
#ifdef _WIN32
12+
#include <winsock2.h>
13+
#else
1014
#include <unistd.h>
15+
#endif
1116

1217
#include "gloo/common/utils.h"
1318

gloo/rendezvous/context.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@
1313
#include "gloo/common/logging.h"
1414
#include "gloo/transport/address.h"
1515

16-
#ifdef _WIN32
17-
#include <winsock2.h>
18-
#include <gloo/common/win.h>
19-
#else
20-
#include <unistd.h>
21-
#endif
22-
2316
namespace gloo {
2417
namespace rendezvous {
2518

0 commit comments

Comments
 (0)