X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..08670ea85abf4b4946a9ce64971b591d7b1ee30b:/src/common/selectdispatcher.cpp diff --git a/src/common/selectdispatcher.cpp b/src/common/selectdispatcher.cpp index 579de5c887..fd0a26938c 100644 --- a/src/common/selectdispatcher.cpp +++ b/src/common/selectdispatcher.cpp @@ -5,7 +5,7 @@ // Created: December 2006 // RCS-ID: $Id$ // Copyright: (c) 2006 Lukasz Michalski -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -34,11 +34,6 @@ #include "wx/intl.h" #endif -#if defined(HAVE_SYS_SELECT_H) || defined(__WATCOMC__) - #include - #include -#endif - #include #define wxSelectDispatcher_Trace wxT("selectdispatcher") @@ -225,8 +220,8 @@ int wxSelectDispatcher::DoSelect(wxSelectSets& sets, int timeout) const if ( timeout != TIMEOUT_INFINITE ) { ptv = &tv; - tv.tv_sec = 0; - tv.tv_usec = timeout*1000; + tv.tv_sec = timeout / 1000; + tv.tv_usec = (timeout % 1000)*1000; } else // no timeout {