fix compile

This commit is contained in:
Glenn Maynard
2004-06-14 05:25:25 +00:00
parent cf9d31917f
commit 003ba7cb63
2 changed files with 4 additions and 1 deletions
@@ -1,5 +1,6 @@
#include "global.h"
#include "Threads_Pthreads.h"
#include "RageUtil.h"
#include <sys/time.h>
#include <errno.h>
@@ -225,7 +226,7 @@ SemaImpl_Pthreads::~SemaImpl_Pthreads()
int SemaImpl_Pthreads::GetValue() const
{
int ret;
sem_getvalue( &sem, &ret );
sem_getvalue( const_cast<sem_t *>(&sem), &ret );
return ret;
}
@@ -7,6 +7,8 @@
#define PID_BASED_THREADS
#endif
#include <semaphore.h>
class ThreadImpl_Pthreads: public ThreadImpl
{
public: