[fix] when use the branch of RT-Thead that version more than v4.0.3, the "mbedtls" can't compile successful.
@@ -38,8 +38,13 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
+#if RT_VER_NUM >= 0x40004
+#include <sys/errno.h>
+#include <sys/signal.h>
+#else
#include <signal.h>
#include <time.h>
+#endif
struct _hr_time
{
@@ -61,6 +61,14 @@ static int wsa_init_done = 0;
#include <sys/socket.h>
#include <sys/select.h>
+#include <sys/ioctl.h>
+#include <fcntl.h>
+#include <dfs_select.h>
#include <netdb.h>
#include <rtthread.h>