diff --git a/mlx/distributed/ibv/ibv.cpp b/mlx/distributed/ibv/ibv.cpp index 3a52105da..4e8a90c97 100644 --- a/mlx/distributed/ibv/ibv.cpp +++ b/mlx/distributed/ibv/ibv.cpp @@ -1079,6 +1079,8 @@ class IBVGroup : public GroupImpl { bool is_available() { if (__builtin_available(macOS 26.2, *)) { return true; + } else { + return false; } } diff --git a/mlx/distributed/utils.cpp b/mlx/distributed/utils.cpp index 1e7f50d2b..ef52ec093 100644 --- a/mlx/distributed/utils.cpp +++ b/mlx/distributed/utils.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -14,7 +15,7 @@ namespace mlx::core::distributed::detail { */ address_t parse_address(const std::string& ip, const std::string& port) { struct addrinfo hints, *res; - memset(&hints, 0, sizeof(hints)); + std::memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; diff --git a/mlx/distributed/utils.h b/mlx/distributed/utils.h index cf229c5fc..213dd59a2 100644 --- a/mlx/distributed/utils.h +++ b/mlx/distributed/utils.h @@ -3,6 +3,8 @@ #pragma once #include +#include +#include namespace mlx::core::distributed::detail {