Browse Source

Fix hsThread_Unix compilation.

Darryl Pogue 13 years ago
parent
commit
0ac6cd4907
  1. 2
      Sources/Plasma/CoreLib/hsThread_Unix.cpp

2
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);

Loading…
Cancel
Save