Skip to content

Commit

Permalink
fix build for windows (facebookincubator#366)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookincubator#366

windows has the call in a different header so need to handle that

Differential Revision: D47562408

fbshipit-source-id: 31c48f72c6b8984ba390edee281a72d75faa4a90
  • Loading branch information
xunnanxu authored and facebook-github-bot committed Jul 19, 2023
1 parent 6d8b511 commit cf1e1ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions gloo/common/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
*/

#include <system_error>

#ifdef _WIN32
#include <winsock2.h>
#else
#include <unistd.h>
#endif

#include "gloo/common/utils.h"

Expand Down
7 changes: 0 additions & 7 deletions gloo/rendezvous/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
#include "gloo/common/logging.h"
#include "gloo/transport/address.h"

#ifdef _WIN32
#include <winsock2.h>
#include <gloo/common/win.h>
#else
#include <unistd.h>
#endif

namespace gloo {
namespace rendezvous {

Expand Down

0 comments on commit cf1e1ab

Please sign in to comment.