[libc]修复因libc移除sys/errno.h文件导致的报错

This commit is contained in:
Meco Man
2021-05-12 14:17:17 +08:00
parent 1c823b3fc0
commit dfb8df71c9
2 changed files with 4 additions and 12 deletions
-7
View File
@@ -19,16 +19,9 @@
#include <sys/types.h>
#include <sys/time.h>
/* errno for Keil MDK */
#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
#include <sys/errno.h>
#include <sys/unistd.h>
#else
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#endif
#endif