From d6edd7c978bfd826988aa99c75d346eaf8d4eac0 Mon Sep 17 00:00:00 2001 From: Salvador Fandino Date: Tue, 2 Jun 2015 12:34:20 +0200 Subject: Remove work around for OS/X that was doing nothing Remove an old work around that's not needed anymore. Tested on OS/X 10.10 for x86. --- nxcomp/Loop.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'nxcomp/Loop.cpp') diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp index aab5c356d..059ac2d93 100644 --- a/nxcomp/Loop.cpp +++ b/nxcomp/Loop.cpp @@ -6671,32 +6671,8 @@ int WaitForRemote(int portNum) tcpAddr.sin_family = AF_INET; tcpAddr.sin_port = htons(portNum); - // - // Quick patch to run on MacOS/X where inet_addr("127.0.0.1") - // alone seems to fail to return a valid interface. It probably - // just needs a htonl() or something like that. - // - // TODO: We have to give another look at inet_addr("127.0.0.1") - // on the Mac. - // - - #ifdef __APPLE__ - - if ( loopbackBind ) - { - tcpAddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); - } - else - { - tcpAddr.sin_addr.s_addr = htonl(INADDR_ANY); - } - - #else - tcpAddr.sin_addr.s_addr = listenIPAddr; - #endif - if (bind(proxyFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1) { #ifdef PANIC -- cgit v1.2.3