##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>即可解决。