Mac下make时报错malloc.h: No such file or directory的解决方法

来源:互联网 发布:sql重复数据有多少条 编辑:程序博客网 时间:2024/05/18 09:14

下载了一个linux环境下的开源工具,结果在mac的gcc环境中编译的时候,报错 error: malloc.h: No such file or directory

解决方法:将报错文件中

#include <malloc.h>

修改为

#include <sys/malloc.h>
0 0