summaryrefslogtreecommitdiff
path: root/emulators/raine/files/patch-source::gui::rgui.c
blob: cba39aea3a7198db929dde75004c7c0571f63422 (plain) (blame)
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
27
28
29
30
31
32
--- source/gui/rgui.c.orig	Mon Jan 17 12:07:21 2005
+++ source/gui/rgui.c	Mon Jan 17 12:23:46 2005
@@ -9,6 +9,10 @@
 #include <winalleg.h>
 #endif

+#ifdef RAINE_UNIX
+#include <sys/time.h>
+#endif
+
 #include "raine.h"
 #include "rgui.h"
 #include "rguiproc.h"
@@ -1507,6 +1511,10 @@
 void dialog_oxygen(void)
 {

+#ifdef RAINE_UNIX
+  struct timeval timeout;
+#endif
+
 #ifdef BUFFER_GUI
    static int z,z1,z2,z3;
    int ta;
@@ -1560,7 +1568,6 @@
   // 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);