質問

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