Skip to content

Commit

Permalink
Enabled cross-compilation for *-linux-musl
Browse files Browse the repository at this point in the history
  • Loading branch information
stemann committed Nov 2, 2024
1 parent 43b7acb commit 07d31b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gloo/common/linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>

#include <algorithm>
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 07d31b8

Please sign in to comment.