Commit 607672bb authored by sletz's avatar sletz
Browse files

Correct JackNetUnixSocket::NewSocket.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4652 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 8506a1f5
......@@ -99,8 +99,11 @@ namespace Jack
/* Enable address reuse */
int res, on = 1;
//if ((res = setsockopt(fSockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on))) < 0) {
#ifdef __APPLE__
if ((res = setsockopt(fSockfd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof(on))) < 0) {
#else
if ((res = setsockopt(fSockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on))) < 0) {
#endif
StrError(NET_ERROR_CODE);
}
return fSockfd;
......
Supports Markdown
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