Hi all!
I'm trying to compile some code where I use a trylock, testing its return against EBUSY. The problem is that it won't compile because gcc says:
error: ‘EBUSY’ undeclared (first use in this function)
I'm using pthread.h and -lpthread when compiling. I also tried to unistall build-essential, update apt and download it again, but no luck.
Can someone help please?