summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dfinput/pad.h1
-rw-r--r--plugins/dfsound/spu.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/dfinput/pad.h b/plugins/dfinput/pad.h
index 80dd5b0e..8347caf8 100644
--- a/plugins/dfinput/pad.h
+++ b/plugins/dfinput/pad.h
@@ -35,6 +35,7 @@ extern "C" {
#include <pthread.h>
#include <SDL.h>
+#include <SDL_joystick.h>
#ifdef _MACOSX
#include <Carbon/Carbon.h>
diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c
index 15c30a45..c086c06b 100644
--- a/plugins/dfsound/spu.c
+++ b/plugins/dfsound/spu.c
@@ -90,7 +90,7 @@ int bThreadEnded=0;
int bSpuInit=0;
int bSPUIsOpen=0;
-static pthread_t thread = -1; // thread id (linux)
+static pthread_t thread = (pthread_t)-1; // thread id (linux)
unsigned long dwNewChannel=0; // flags for faster testing, if new channel starts
@@ -841,7 +841,7 @@ void RemoveTimer(void)
{
int i=0;
while(!bThreadEnded && i<2000) {usleep(1000L);i++;} // -> wait until thread has ended
- if(thread!=-1) {pthread_cancel(thread);thread=-1;} // -> cancel thread anyway
+ if(thread!=(pthread_t)-1) {pthread_cancel(thread);thread=(pthread_t)-1;} // -> cancel thread anyway
}
bThreadEnded=0; // no more spu is running