blob: a5278d4a69ca604af2e350e4e3efd90b00e317ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$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
|