diff options
author | marha <marha@users.sourceforge.net> | 2010-01-02 14:58:00 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-01-02 14:58:00 +0000 |
commit | e990b127f48882996bc24094cc4fad49d343bfe5 (patch) | |
tree | 5094c4a1556a2fcf0b97c91def10bf6c410a5113 /xorg-server/dix | |
parent | 66ef07b684165a09f21069ad7fc3b1105cdb4e10 (diff) | |
download | vcxsrv-e990b127f48882996bc24094cc4fad49d343bfe5.tar.gz vcxsrv-e990b127f48882996bc24094cc4fad49d343bfe5.tar.bz2 vcxsrv-e990b127f48882996bc24094cc4fad49d343bfe5.zip |
Use InitWSA function to intialise winsock.
Diffstat (limited to 'xorg-server/dix')
-rw-r--r-- | xorg-server/dix/main.c | 6 |
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
|