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 #ifdef USE_SEMA
int status = ::sem_trywait(fPSema); int status = ::sem_trywait(fPSema);
return status != E_AGAIN; return status != EAGAIN;
#else #else
int status = ::pthread_mutex_trylock(&fPMutex); int status = ::pthread_mutex_trylock(&fPMutex);
hsThrowIfOSErr(status); hsThrowIfOSErr(status);

Loading…
Cancel
Save