문제

So, I'm getting an error on this line of code;

else if(lockError == EBUSY)

I get the error;

use of undeclared identifier 'EBUSY'

How do I compare my int lockError to the EBUSY that might be returned when I try a pthread_mutex_unlock.

도움이 되었습니까?

해결책

You forgot to include #include<errno.h> where EBSUY is defined. See errno.h.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top