aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/dix
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/dix')
-rw-r--r--xorg-server/dix/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xorg-server/dix/main.c b/xorg-server/dix/main.c
index 644f05b25..78cf716d2 100644
--- a/xorg-server/dix/main.c
+++ b/xorg-server/dix/main.c
@@ -156,6 +156,12 @@ int main(int argc, char *argv[], char *envp[])
display = "0";
#ifdef WIN32
+
+ if (InitWSA()<0)
+ {
+ printf("Error initialising WSA\n");
+ return -1;
+ }
/* In Win32 we have different threads call Xlib functions (depending
on the commandline options given).
XInitThreads has to be called before