diff options
author | dscho <dscho> | 2004-12-01 23:06:56 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-12-01 23:06:56 +0000 |
commit | 658b65ad0cc2045bf2c930c8ef2a2853a07ba6ee (patch) | |
tree | 51a7b1f153204de2c3bc423411d8f5b2f566c4f6 /libvncclient/listen.c | |
parent | 7d3b1c9762b5f2878e9783677677cb2b3aa10e7e (diff) | |
download | libtdevnc-658b65ad0cc2045bf2c930c8ef2a2853a07ba6ee.tar.gz libtdevnc-658b65ad0cc2045bf2c930c8ef2a2853a07ba6ee.zip |
support MinGW32!
Diffstat (limited to 'libvncclient/listen.c')
-rw-r--r-- | libvncclient/listen.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libvncclient/listen.c b/libvncclient/listen.c index a7e4259..dc6508c 100644 --- a/libvncclient/listen.c +++ b/libvncclient/listen.c @@ -23,9 +23,13 @@ #include <unistd.h> #include <sys/types.h> +#ifdef __MINGW32__ +#include <winsock2.h> +#else #include <sys/wait.h> -#include <sys/time.h> #include <sys/utsname.h> +#endif +#include <sys/time.h> #include <rfb/rfbclient.h> /* @@ -36,6 +40,11 @@ void listenForIncomingConnections(rfbClient* client) { +#ifdef __MINGW32__ + /* FIXME */ + rfbClientErr("listenForIncomingConnections on MinGW32 NOT IMPLEMENTED\n"); + return; +#else int listenSocket; fd_set fds; @@ -77,7 +86,7 @@ listenForIncomingConnections(rfbClient* client) switch (fork()) { case -1: - rfbClientErr("fork"); + rfbClientErr("fork\n"); return; case 0: @@ -92,6 +101,7 @@ listenForIncomingConnections(rfbClient* client) } } } +#endif } |