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)
commitc7c008ed87d396afec9a6f9879a22660d6afa490 (patch)
treea88dd559e9fef2fc47befe095b184127b9bc9480 /unix
parent994c07125e17358a895eddd8f573065b68d83d68 (diff)
downloadtcl-c7c008ed87d396afec9a6f9879a22660d6afa490.zip
tcl-c7c008ed87d396afec9a6f9879a22660d6afa490.tar.gz
tcl-c7c008ed87d396afec9a6f9879a22660d6afa490.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
}
/*