summaryrefslogtreecommitdiff
path: root/games/falcons-eye/patches/patch-bd
blob: 90a4f55309e2a604db6906efe3e82b4bf25ed3f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-bd,v 1.3 2007/06/17 19:19:18 minskim Exp $

--- win/jtp/jtp_sdl.c.orig	2001-07-02 07:05:50.000000000 -0700
+++ win/jtp/jtp_sdl.c
@@ -11,7 +11,6 @@
 -------------------------------------------------------------------*/
 
 #include <stdlib.h>
-#include <malloc.h>
 #include <unistd.h>
 #include <signal.h>
 #include <errno.h>
@@ -405,6 +404,11 @@ void jtp_SDLPollForMessage(char waitform
 {
   SDL_Event cur_event;
 
+#ifdef _PTH_PTHREAD_H_
+  /* give the SDL audio thread a chance */
+  pthread_yield_np();
+#endif
+
   /* Process any waiting messages */
   jtp_sdl_polled_message_arrived = JTP_SDL_POLLED_MESSAGE_NOT_ARRIVED;
   while (SDL_PollEvent(&cur_event))