From 615e9cec3223d7f4661d2b2140661839929cef5d Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Thu, 6 May 2010 21:19:31 +0200 Subject: compile fix: FD_ZERO (sys/select.h) on solaris wants to use memset(); closes #2997117 --- src/FbTk/Timer.cc | 14 ++++++++++---- src/FbTk/Timer.hh | 1 - 2 files changed, 10 insertions(+), 5 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 @@ #include "config.h" #endif // HAVE_CONFIG_H -#include -#include -#include #ifdef HAVE_CASSERT #include #else #include #endif +// sys/select.h on solaris wants to use memset() +#ifdef HAVE_CSTRING +# include +#else +# include +#endif + +#include + namespace FbTk { Timer::TimerList Timer::m_timerlist; @@ -90,7 +96,7 @@ void Timer::start() { if ((! m_timing || m_interval != 0) && *m_handler) { m_timing = true; addTimer(this); //add us to the list - } + } } diff --git a/src/FbTk/Timer.hh b/src/FbTk/Timer.hh index 4893fdb..6be269b 100644 --- a/src/FbTk/Timer.hh +++ b/src/FbTk/Timer.hh @@ -45,7 +45,6 @@ #endif // HAVE_INTTYPES_H #include -#include #include #include -- cgit v0.11.2