diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index 2e200e6b5..a7c5e0076 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -5,6 +5,10 @@ set(gloo_hip_DEPENDENCY_LIBS "") # Configure path to modules (for find_package) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/") +if (WIN32) + list(APPEND gloo_DEPENDENCY_LIBS "ws2_32") +endif() + if(USE_REDIS) find_package(hiredis REQUIRED) if(HIREDIS_FOUND) diff --git a/gloo/rendezvous/file_store.cc b/gloo/rendezvous/file_store.cc index 206c38749..f07134087 100644 --- a/gloo/rendezvous/file_store.cc +++ b/gloo/rendezvous/file_store.cc @@ -37,7 +37,7 @@ FileStore::FileStore(const std::string& path) { } std::string FileStore::realPath(const std::string& path) { -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__MINGW32__) std::array buf; auto ret = _fullpath(buf.data(), path.c_str(), buf.size()); #else diff --git a/gloo/types.h b/gloo/types.h index cd38c8a93..b8d56a8e6 100644 --- a/gloo/types.h +++ b/gloo/types.h @@ -30,7 +30,7 @@ #include "gloo/common/common.h" #ifdef _WIN32 -#include +#include typedef SSIZE_T ssize_t; #endif