$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
 
