rt-thread:cannot open source input file "sys/types.h":解决方法

....componentspthreadsposix_types.h(9): error:  #5: cannot open source input file "sys/types.h": No such file or directory
解决办法:找到rtconfig.h,在其中找到宏定义RT_USING_NEWLIB,把它注释掉,重新编译,搞定。

原文地址:https://www.cnblogs.com/ju-an/p/3232420.html