]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
win32: don't use select() for waiting, use Sleep() again
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Nov 2010 08:10:10 +0000 (08:10 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 4 Nov 2010 08:11:45 +0000 (09:11 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10577 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=87665e3d8fa1c4ab1276becc1da124eea79a53dd

sys_shared.c

index e9211f424ac9c86d282200045aba41e571c807ef..991c67c2b64c04c562a3d98c3a7777aca12031ac 100644 (file)
@@ -229,8 +229,12 @@ void* Sys_GetProcAddress (dllhandle_t handle, const char* name)
 # define HAVE_GETTIMEOFDAY 1
 #endif
 
-#ifdef FD_SET
-# define HAVE_SELECT 1
+#ifndef WIN32
+// on Win32, select() cannot be used with all three FD list args being NULL according to MSDN
+// (so much for POSIX...)
+# ifdef FD_SET
+#  define HAVE_SELECT 1
+# endif
 #endif
 
 #ifndef WIN32