summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorlimeboy <that.lemon+tcl@gmai.com>2016-11-24 21:01:43 (GMT)
committerlimeboy <that.lemon+tcl@gmai.com>2016-11-24 21:01:43 (GMT)
commit467b6eeb8e37745e3e02deb72d0833995109cc50 (patch)
treea88dd559e9fef2fc47befe095b184127b9bc9480 /unix
parent07020d6350987f39307fa3f60dd7d3414edb04ef (diff)
downloadtcl-467b6eeb8e37745e3e02deb72d0833995109cc50.zip
tcl-467b6eeb8e37745e3e02deb72d0833995109cc50.tar.gz
tcl-467b6eeb8e37745e3e02deb72d0833995109cc50.tar.bz2
Allow a boolean argument to be passed.
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixSock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index bb75ed3..187c157 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -1523,10 +1523,11 @@ Tcl_OpenTcpServerEx(
*/
errorMsg = "SO_REUSEPORT isn't supported by this platform";
goto error;
-#endif
+#else
optvalue = 1;
(void) setsockopt(sock, SOL_SOCKET, SO_REUSEPORT,
(char *) &optvalue, sizeof(optvalue));
+#endif
}
/*