[libc] include <sys/select.h> when enable HAVE_SYS_SELECT_H

This commit is contained in:
bernard
2017-12-22 14:45:36 +08:00
committed by Bernard Xiong
parent 5326bd55a5
commit 9644678dcb
+4 -1
View File
@@ -29,6 +29,10 @@
#if defined(RT_USING_NEWLIB) || defined(_WIN32) #if defined(RT_USING_NEWLIB) || defined(_WIN32)
#include <sys/types.h> #include <sys/types.h>
#if defined(HAVE_SYS_SELECT_H)
#include <sys/select.h>
#endif
#else #else
#ifdef RT_USING_DFS_NET #ifdef RT_USING_DFS_NET
@@ -68,4 +72,3 @@ typedef struct _types_fd_set {
#endif #endif
#endif #endif