summaryrefslogtreecommitdiff
path: root/devel/SDL/patches/patch-ap
diff options
context:
space:
mode:
Diffstat (limited to 'devel/SDL/patches/patch-ap')
-rw-r--r--devel/SDL/patches/patch-ap21
1 files changed, 9 insertions, 12 deletions
diff --git a/devel/SDL/patches/patch-ap b/devel/SDL/patches/patch-ap
index b756b15bf25..355b93920de 100644
--- a/devel/SDL/patches/patch-ap
+++ b/devel/SDL/patches/patch-ap
@@ -1,8 +1,8 @@
-$NetBSD: patch-ap,v 1.1 2000/10/22 16:55:21 rh Exp $
+$NetBSD: patch-ap,v 1.2 2000/12/03 04:33:11 wiz Exp $
---- src/timer/linux/SDL_systimer.c.orig Fri May 19 23:59:30 2000
+--- src/timer/linux/SDL_systimer.c.orig Sun Oct 22 22:35:19 2000
+++ src/timer/linux/SDL_systimer.c
-@@ -36,8 +36,13 @@
+@@ -36,6 +36,10 @@
#include "SDL_timer.h"
#include "SDL_timer_c.h"
@@ -12,17 +12,14 @@ $NetBSD: patch-ap,v 1.1 2000/10/22 16:55:21 rh Exp $
+
#if defined(DISABLE_THREADS) || defined(FORK_HACK)
#define USE_ITIMER
-+#else
- #endif
-
- /* The first ticks value of the application */
-@@ -75,6 +80,9 @@
- then = SDL_GetTicks();
#endif
+@@ -96,6 +100,9 @@
do {
+ errno = 0;
+
+#if _POSIX_THREAD_SYSCALL_SOFT
+ pthread_yield_np();
+#endif
- errno = 0;
- #ifndef linux
- /* Calculate the time interval left (in case of interrupt) */
+ #ifdef USE_NANOSLEEP
+ tv.tv_sec = elapsed.tv_sec;
+ tv.tv_nsec = elapsed.tv_nsec;