aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/os/xstrans.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/os/xstrans.c')
-rw-r--r--xorg-server/os/xstrans.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-server/os/xstrans.c b/xorg-server/os/xstrans.c
index b902dc41b..cdc8f8eec 100644
--- a/xorg-server/os/xstrans.c
+++ b/xorg-server/os/xstrans.c
@@ -15,5 +15,9 @@ _X_ATTRIBUTE_PRINTF(1, 2);*/
#ifndef TCPCONN
#define TCPCONN
#endif
+#ifdef WIN32
+#undef SO_REUSEADDR
+#define SO_BINDRETRYCOUNT 0 // do not try to bind again when it fails, this will speed up searching for a free listening port
+#endif
#include <X11/Xtrans/transport.c>