From 0ac6cd4907170b4f2f1833692d06d561a0e9709b Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Fri, 20 Apr 2012 22:54:23 -0700 Subject: [PATCH] Fix hsThread_Unix compilation. --- Sources/Plasma/CoreLib/hsThread_Unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);