fix compile
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "Threads_Pthreads.h"
|
#include "Threads_Pthreads.h"
|
||||||
|
#include "RageUtil.h"
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
@@ -225,7 +226,7 @@ SemaImpl_Pthreads::~SemaImpl_Pthreads()
|
|||||||
int SemaImpl_Pthreads::GetValue() const
|
int SemaImpl_Pthreads::GetValue() const
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
sem_getvalue( &sem, &ret );
|
sem_getvalue( const_cast<sem_t *>(&sem), &ret );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
#define PID_BASED_THREADS
|
#define PID_BASED_THREADS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <semaphore.h>
|
||||||
|
|
||||||
class ThreadImpl_Pthreads: public ThreadImpl
|
class ThreadImpl_Pthreads: public ThreadImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user