// Purpose: implements dispatcher for select() call
// Author: Lukasz Michalski and Vadim Zeitlin
// Created: December 2006
-// RCS-ID: $Id$
// Copyright: (c) 2006 Lukasz Michalski
-// License: wxWindows licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
#include "wx/intl.h"
#endif
-#if defined(HAVE_SYS_SELECT_H) || defined(__WATCOMC__)
- #include <sys/time.h>
- #include <sys/select.h>
-#endif
-
#include <errno.h>
#define wxSelectDispatcher_Trace wxT("selectdispatcher")
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
{