From: divverent Date: Thu, 4 Nov 2010 08:10:10 +0000 (+0000) Subject: win32: don't use select() for waiting, use Sleep() again X-Git-Tag: xonotic-v0.1.0preview~56^2~40 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=87665e3d8fa1c4ab1276becc1da124eea79a53dd;p=xonotic%2Fdarkplaces.git win32: don't use select() for waiting, use Sleep() again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10577 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sys_shared.c b/sys_shared.c index dd00b48b..695f3465 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -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