$NetBSD: patch-ap,v 1.2 2000/12/03 04:33:11 wiz Exp $ --- src/timer/linux/SDL_systimer.c.orig Sun Oct 22 22:35:19 2000 +++ src/timer/linux/SDL_systimer.c @@ -36,6 +36,10 @@ #include "SDL_timer.h" #include "SDL_timer_c.h" +#if _POSIX_THREAD_SYSCALL_SOFT +#include +#endif + #if defined(DISABLE_THREADS) || defined(FORK_HACK) #define USE_ITIMER #endif @@ -96,6 +100,9 @@ do { errno = 0; +#if _POSIX_THREAD_SYSCALL_SOFT + pthread_yield_np(); +#endif #ifdef USE_NANOSLEEP tv.tv_sec = elapsed.tv_sec; tv.tv_nsec = elapsed.tv_nsec;