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;