Commit d6edd7c9 authored by Salvador Fandino's avatar Salvador Fandino Committed by Mike Gabriel

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.
parent d2e8551e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment