mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 13:31:48 +08:00
28c7206cba
Fixes https://github.com/microsoft/vcpkg/issues/36833 ``` /mnt/vcpkg/buildtrees/gloo/src/4842d821e2-089f9c85b8.clean/gloo/transport/tcp/device.cc:151:39: error: aggregate ‘std::array<char, 64> hostname’ has incomplete type and cannot be defined 151 | std::array<char, HOST_NAME_MAX> hostname; | ^~~~~~~~ ``` - [X] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] ~~SHA512s are updated for each updated download.~~ - [ ] ~~The "supports" clause reflects platforms that may be fixed by this new version.~~ - [ ] ~~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~~ - [ ] ~~Any patches that are no longer applied are deleted from the port's directory.~~ - [X] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [X] Only one version is added to each modified port's versions file. Usage test pass with following triplets: ``` x64-linux ```
25 lines
644 B
Diff
25 lines
644 B
Diff
diff --git a/gloo/transport/tcp/device.cc b/gloo/transport/tcp/device.cc
|
|
index cda44c8..2df6167 100644
|
|
--- a/gloo/transport/tcp/device.cc
|
|
+++ b/gloo/transport/tcp/device.cc
|
|
@@ -12,6 +12,7 @@
|
|
#include <netdb.h>
|
|
#include <netinet/in.h>
|
|
#include <string.h>
|
|
+#include <array>
|
|
|
|
#include "gloo/common/linux.h"
|
|
#include "gloo/common/logging.h"
|
|
diff --git a/gloo/transport/tcp/tls/pair.cc b/gloo/transport/tcp/tls/pair.cc
|
|
index e8f95f7..b0277aa 100644
|
|
--- a/gloo/transport/tcp/tls/pair.cc
|
|
+++ b/gloo/transport/tcp/tls/pair.cc
|
|
@@ -17,6 +17,7 @@
|
|
|
|
#include <cstring>
|
|
#include <poll.h>
|
|
+#include <array>
|
|
|
|
namespace gloo {
|
|
namespace transport {
|