summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-15 03:17:46 +0000
committerDana Jansens <danakj@orodu.net>2003-01-15 03:17:46 +0000
commite44d7697e56a32bafefe25e87feb67a5c29ce7ad (patch)
tree692adc8835c9aa259f1b0e0051d049da336056ae
parentd9a5620f805d99738adc4cacdce9077f74574466 (diff)
add headers for select()
-rw-r--r--otk/timer.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/otk/timer.cc b/otk/timer.cc
index 2d36c7a0..755096b8 100644
--- a/otk/timer.cc
+++ b/otk/timer.cc
@@ -7,6 +7,15 @@
#include "timer.hh"
#include "display.hh"
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#else
+# ifdef HAVE_UNISTD_H
+# include <sys/types.h>
+# include <unistd.h>
+# endif // HAVE_UNISTD_H
+#endif // HAVE_SYS_SELECT_H
+
namespace otk {
timeval Timer::_nearest_timeout, Timer::_now;