sci-libs/gloo: fix build

Closes: https://bugs.gentoo.org/873307

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2022-10-04 21:26:39 +02:00
parent c3ebae56d5
commit 8b7ccb82d5

View File

@@ -72,3 +72,33 @@
#include "gloo/common/linux.h"
#include "gloo/common/logging.h"
--- a/gloo/transport/tcp/tls/pair.cc 2022-10-04 21:14:04.099150060 +0200
+++ b/gloo/transport/tcp/tls/pair.cc 2022-10-04 21:14:22.330886610 +0200
@@ -17,6 +17,7 @@
#include <cstring>
#include <poll.h>
+#include <array>
namespace gloo {
namespace transport {
--- a/gloo/common/linux.cc 2022-10-04 21:20:21.401691929 +0200
+++ b/gloo/common/linux.cc 2022-10-04 21:23:13.924192100 +0200
@@ -198,7 +198,7 @@
} ecmd;
int rv;
- ifr->ifr_data = (__caddr_t)&ecmd;
+ ifr->ifr_data = (char *)&ecmd;
memset(&ecmd, 0, sizeof(ecmd));
ecmd.req.cmd = ETHTOOL_GLINKSETTINGS;
@@ -226,7 +226,7 @@
struct ethtool_cmd edata;
int rv;
- ifr->ifr_data = (__caddr_t)&edata;
+ ifr->ifr_data = (char *)&edata;
memset(&edata, 0, sizeof(edata));
edata.cmd = ETHTOOL_GSET;