[libc] include <sys/select.h> when enable HAVE_SYS_SELECT_H
#if defined(RT_USING_NEWLIB) || defined(_WIN32)
#include <sys/types.h>
+#if defined(HAVE_SYS_SELECT_H)
+#include <sys/select.h>
+#endif
+
#else
#ifdef RT_USING_DFS_NET
@@ -68,4 +72,3 @@ typedef struct _types_fd_set {
#endif
#endif
-
