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一下。
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一下。