Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
d6edd7c9
Commit
d6edd7c9
authored
Jun 02, 2015
by
Salvador Fandino
Committed by
Mike Gabriel
Jul 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
Loop.cpp
nxcomp/Loop.cpp
+0
-24
No files found.
nxcomp/Loop.cpp
View file @
d6edd7c9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment