summaryrefslogtreecommitdiff
path: root/emulators/raine/files/patch-source::gui::rgui.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/raine/files/patch-source::gui::rgui.c')
-rw-r--r--emulators/raine/files/patch-source::gui::rgui.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/emulators/raine/files/patch-source::gui::rgui.c b/emulators/raine/files/patch-source::gui::rgui.c
new file mode 100644
index 000000000000..cba39aea3a71
--- /dev/null
+++ b/emulators/raine/files/patch-source::gui::rgui.c
@@ -0,0 +1,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);