summaryrefslogtreecommitdiff
path: root/emulators/raine/patches/patch-ad
blob: 0310a86c36a30a70f122e8289251d70d215abd20 (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
25
26
$NetBSD: patch-ad,v 1.2 2006/01/12 21:35:09 joerg Exp $

--- source/gui/rgui.c.orig	Sat Apr 17 02:38:41 2004
+++ source/gui/rgui.c	Sat Apr 17 02:39:11 2004
@@ -9,6 +9,8 @@
 #include <winalleg.h>
 #endif
 
+#include <sys/time.h>
+
 #include "raine.h"
 #include "rgui.h"
 #include "rguiproc.h"
@@ -1723,10 +1725,12 @@ void dialog_oxygen(void)
   // 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