linux C 编译错误 error: ‘EOWNERDEAD’ undeclared (first use in this function)

 error: ‘EOWNERDEAD’ undeclared (first use in this function)

error: ‘ENOTRECOVERABLE’ undeclared (first use in this function)


在linux 使用pthread_mutex_lock()判断返回值是否为EOWNERDEAD,编译出现错误。


包含头文件#include <errno.h>即可解决。

本人linux菜鸟碰到了这个问题,mark一下。

猜你喜欢

转载自blog.csdn.net/dongsongz/article/details/78571874