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