summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-24 13:18:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-24 13:18:10 (GMT)
commit842d6d00f1e11ebdf17ec934d7c7d49381a456c0 (patch)
treef6db2bc174cb5819bd0877f24a783c21666795fd /unix/tclUnixSock.c
parent18592932556fe3ca6e78e7c4a11af2db03beb6da (diff)
downloadtcl-842d6d00f1e11ebdf17ec934d7c7d49381a456c0.zip
tcl-842d6d00f1e11ebdf17ec934d7c7d49381a456c0.tar.gz
tcl-842d6d00f1e11ebdf17ec934d7c7d49381a456c0.tar.bz2
Fix compile error if SO_REUSEPORT not supported. Put command options in alphabetical order
Diffstat (limited to 'unix/tclUnixSock.c')
-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
}
/*