From 1e7a5984c95f4538338de10d295f2af3edb44faf Mon Sep 17 00:00:00 2001 From: thilo Date: Fri, 14 Dec 2007 16:25:33 +0000 Subject: Replace obsolete macro with some other macro. I hope this does not break too much. git-svn-id: svn://svn.icculus.org/quake3/trunk@1237 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/net_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index e8bf397..b35808c 100644 --- a/code/qcommon/net_ip.c +++ b/code/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 { -- cgit v1.2.3