From 0d229f2ed1d483760310ff16653fe3d4b6c2276f Mon Sep 17 00:00:00 2001 From: Jesper Stemann Andersen Date: Sun, 4 Sep 2022 16:52:09 +0200 Subject: [PATCH] Enabled cross-compilation for *-linux-musl --- gloo/common/linux.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gloo/common/linux.cc b/gloo/common/linux.cc index c5e6c887b..3a8b0044b 100644 --- a/gloo/common/linux.cc +++ b/gloo/common/linux.cc @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -198,7 +199,7 @@ static int getInterfaceSpeedGLinkSettings(int sock, struct ifreq* ifr) { } ecmd; int rv; - ifr->ifr_data = (__caddr_t)&ecmd; + ifr->ifr_data = (caddr_t)&ecmd; memset(&ecmd, 0, sizeof(ecmd)); ecmd.req.cmd = ETHTOOL_GLINKSETTINGS; @@ -226,7 +227,7 @@ static int getInterfaceSpeedGSet(int sock, struct ifreq* ifr) { struct ethtool_cmd edata; int rv; - ifr->ifr_data = (__caddr_t)&edata; + ifr->ifr_data = (caddr_t)&edata; memset(&edata, 0, sizeof(edata)); edata.cmd = ETHTOOL_GSET;