Skip to content

Commit 07d31b8

Browse files
committed
Enabled cross-compilation for *-linux-musl
1 parent 43b7acb commit 07d31b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gloo/common/linux.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <string.h>
2121
#include <sys/ioctl.h>
2222
#include <sys/socket.h>
23+
#include <sys/types.h>
2324
#include <unistd.h>
2425

2526
#include <algorithm>
@@ -198,7 +199,7 @@ static int getInterfaceSpeedGLinkSettings(int sock, struct ifreq* ifr) {
198199
} ecmd;
199200
int rv;
200201

201-
ifr->ifr_data = (__caddr_t)&ecmd;
202+
ifr->ifr_data = (caddr_t)&ecmd;
202203
memset(&ecmd, 0, sizeof(ecmd));
203204
ecmd.req.cmd = ETHTOOL_GLINKSETTINGS;
204205

@@ -226,7 +227,7 @@ static int getInterfaceSpeedGSet(int sock, struct ifreq* ifr) {
226227
struct ethtool_cmd edata;
227228
int rv;
228229

229-
ifr->ifr_data = (__caddr_t)&edata;
230+
ifr->ifr_data = (caddr_t)&edata;
230231
memset(&edata, 0, sizeof(edata));
231232
edata.cmd = ETHTOOL_GSET;
232233

0 commit comments

Comments
 (0)