diff --git a/include/wx/private/selectdispatcher.h b/include/wx/private/selectdispatcher.h index 1dc1ed290f..5c17fe650e 100644 --- a/include/wx/private/selectdispatcher.h +++ b/include/wx/private/selectdispatcher.h @@ -15,14 +15,17 @@ #if wxUSE_SELECT_DISPATCHER +#if defined(HAVE_SYS_SELECT_H) || defined(__WATCOMC__) + #include + #include +#endif + #ifdef __WATCOMC__ - #include - #include - #include - #include - #include + #include + #include + #include #else - #include + #include #endif #include "wx/private/fdiodispatcher.h" diff --git a/src/common/selectdispatcher.cpp b/src/common/selectdispatcher.cpp index 579de5c887..dca9adec85 100644 --- a/src/common/selectdispatcher.cpp +++ b/src/common/selectdispatcher.cpp @@ -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")