Explorar o código

[kernel] fix MUSL libc issue in errno.h

BernardXiong %!s(int64=4) %!d(string=hai) anos
pai
achega
e2e4090228
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      include/libc/libc_errno.h

+ 2 - 2
include/libc/libc_errno.h

@@ -13,7 +13,7 @@
 
 
 #include <rtconfig.h>
 #include <rtconfig.h>
 
 
-#if defined(RT_USING_NEWLIB) || defined(_WIN32) || defined(__ARMCC_GNUC__)
+#if defined(RT_USING_NEWLIB) || defined(RT_USING_MUSL) || defined(_WIN32) || defined(__ARMCC_GNUC__)
 /* use errno.h file in toolchains */
 /* use errno.h file in toolchains */
 #include <errno.h>
 #include <errno.h>
 #endif
 #endif
@@ -45,7 +45,7 @@ defined in armcc/errno.h
 #define ERROR_BASE_NO    0
 #define ERROR_BASE_NO    0
 #endif
 #endif
 
 
-#if !defined(RT_USING_NEWLIB) && !defined(_WIN32) && !defined(__ARMCC_GNUC__)
+#if !defined(RT_USING_NEWLIB) && !defined(RT_USING_MUSL) && !defined(_WIN32) && !defined(__ARMCC_GNUC__)
 
 
 #define EPERM            (ERROR_BASE_NO + 1)
 #define EPERM            (ERROR_BASE_NO + 1)
 #define ENOENT           (ERROR_BASE_NO + 2)
 #define ENOENT           (ERROR_BASE_NO + 2)