diff --git a/Sources/Plasma/CoreLib/hsThread_Unix.cpp b/Sources/Plasma/CoreLib/hsThread_Unix.cpp index f4952482..c625fc05 100644 --- a/Sources/Plasma/CoreLib/hsThread_Unix.cpp +++ b/Sources/Plasma/CoreLib/hsThread_Unix.cpp @@ -320,7 +320,7 @@ hsBool hsSemaphore::TryWait() { #ifdef USE_SEMA int status = ::sem_trywait(fPSema); - return status != E_AGAIN; + return status != EAGAIN; #else int status = ::pthread_mutex_trylock(&fPMutex); hsThrowIfOSErr(status);