diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 11:19:42 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:14:53 +0000 |
commit | 616b5ea15bf22be383df083523174fbefec1cd97 (patch) | |
tree | 9e92b543f0c46e1224ffcf39ec6699046bfce32b /src/qcommon | |
parent | 301fd365934eebeb9322de4191ff77fb1d274cd1 (diff) |
Fix compiling on OSX
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/net_ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c index abff7313..f44ff657 100644 --- a/src/qcommon/net_ip.c +++ b/src/qcommon/net_ip.c @@ -756,7 +756,7 @@ void NET_GetLocalAddress( void ) { if (sdl->sdl_type != IFT_LOOP) { // Get the local interface address strncpy(ifr.ifr_name, inetInterface->ifr_name, sizeof(ifr.ifr_name)); - if (ioctl(interfaceSocket, OSIOCGIFADDR, (caddr_t)&ifr) < 0) { + if (ioctl(interfaceSocket, SIOCGIFADDR, (caddr_t)&ifr) < 0) { Com_Printf("NET_GetLocalAddress: Unable to get local address " "for interface '%s', errno = %d\n", inetInterface->ifr_name, errno); } else { |