aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Timer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Timer.cc')
-rw-r--r--src/FbTk/Timer.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/FbTk/Timer.cc b/src/FbTk/Timer.cc
index 44ea69a..7d7a84b 100644
--- a/src/FbTk/Timer.cc
+++ b/src/FbTk/Timer.cc
@@ -36,15 +36,21 @@
36#include "config.h" 36#include "config.h"
37#endif // HAVE_CONFIG_H 37#endif // HAVE_CONFIG_H
38 38
39#include <sys/time.h>
40#include <sys/types.h>
41#include <unistd.h>
42#ifdef HAVE_CASSERT 39#ifdef HAVE_CASSERT
43 #include <cassert> 40 #include <cassert>
44#else 41#else
45 #include <assert.h> 42 #include <assert.h>
46#endif 43#endif
47 44
45// sys/select.h on solaris wants to use memset()
46#ifdef HAVE_CSTRING
47# include <cstring>
48#else
49# include <string.h>
50#endif
51
52#include <sys/select.h>
53
48namespace FbTk { 54namespace FbTk {
49 55
50Timer::TimerList Timer::m_timerlist; 56Timer::TimerList Timer::m_timerlist;
@@ -90,7 +96,7 @@ void Timer::start() {
90 if ((! m_timing || m_interval != 0) && *m_handler) { 96 if ((! m_timing || m_interval != 0) && *m_handler) {
91 m_timing = true; 97 m_timing = true;
92 addTimer(this); //add us to the list 98 addTimer(this); //add us to the list
93 } 99 }
94} 100}
95 101
96 102