pkgsrc/emulators/raine/patches/patch-ad

17 lines
505 B
Text

$NetBSD: patch-ad,v 1.1 2004/04/17 00:58:42 kristerw Exp $
--- source/gui/rgui.c.orig Sat Apr 17 02:38:41 2004
+++ source/gui/rgui.c Sat Apr 17 02:39:11 2004
@@ -1715,10 +1715,12 @@
// its sleep function has a 1ms resolution instead of 1us. Too bad...
Sleep(1000/60);
#elif defined(RAINE_UNIX)
+ {
struct timeval timeout;
timeout.tv_sec = 0;
timeout.tv_usec = 1000000/60;
select(0, NULL, NULL, NULL, &timeout);
+ }
#endif
// Nothing in dos to put the cpu in sleep mode, AFAIK