#if wxUSE_SELECT_DISPATCHER
+#if defined(HAVE_SYS_SELECT_H) || defined(__WATCOMC__)
+ #include <sys/time.h>
+ #include <sys/select.h>
+#endif
+
#ifdef __WATCOMC__
- #include <types.h>
- #include <sys/ioctl.h>
- #include <sys/time.h>
- #include <sys/select.h>
- #include <tcpustd.h>
+ #include <types.h>
+ #include <sys/ioctl.h>
+ #include <tcpustd.h>
#else
- #include <sys/types.h>
+ #include <sys/types.h>
#endif
#include "wx/private/fdiodispatcher.h"