summaryrefslogtreecommitdiffstats
path: root/generic
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)
commita3a4e02afa38968088c4f32a658ddb26391bc117 (patch)
treef6db2bc174cb5819bd0877f24a783c21666795fd /generic
parent5b33616e5080b53d8b1e8b8608a98d824a952ee9 (diff)
downloadtcl-a3a4e02afa38968088c4f32a658ddb26391bc117.zip
tcl-a3a4e02afa38968088c4f32a658ddb26391bc117.tar.gz
tcl-a3a4e02afa38968088c4f32a658ddb26391bc117.tar.bz2
Fix compile error if SO_REUSEPORT not supported. Put command options in alphabetical order
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIOCmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c
index b4696fd..930f5a3 100644
--- a/generic/tclIOCmd.c
+++ b/generic/tclIOCmd.c
@@ -1485,12 +1485,12 @@ Tcl_SocketObjCmd(
Tcl_Obj *const objv[]) /* Argument objects. */
{
static const char *const socketOptions[] = {
- "-async", "-myaddr", "-myport", "-server", "-reuseaddr", "-reuseport",
+ "-async", "-myaddr", "-myport", "-reuseaddr", "-reuseport", "-server",
NULL
};
enum socketOptions {
- SKT_ASYNC, SKT_MYADDR, SKT_MYPORT, SKT_SERVER, SKT_REUSEADDR,
- SKT_REUSEPORT
+ SKT_ASYNC, SKT_MYADDR, SKT_MYPORT, SKT_REUSEADDR, SKT_REUSEPORT,
+ SKT_SERVER
};
int optionIndex, a, server = 0, port, myport = 0, async = 0;
unsigned int flags = 0;