]> de.git.xonotic.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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Nov 2010 08:10:10 +0000 (08:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10577 d7cf8633-e32d-0410-b094-e92efae38249

sys_shared.c

index dd00b48b01cafcaced429677d894d6ba41c22fc2..695f34651893c63047cff347ec83e4bc1421d767 100644 (file)
@@ -234,8 +234,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