compile fix: FD_ZERO (sys/select.h) on solaris wants to use memset(); closes #2997117
Mathias Gumz akira at fluxbox dot org
2 files changed,
10 insertions(+),
5 deletions(-)
M
src/FbTk/Timer.cc
→
src/FbTk/Timer.cc
@@ -36,14 +36,20 @@ #ifdef HAVE_CONFIG_H
#include "config.h" #endif // HAVE_CONFIG_H -#include <sys/time.h> -#include <sys/types.h> -#include <unistd.h> #ifdef HAVE_CASSERT #include <cassert> #else #include <assert.h> #endif + +// sys/select.h on solaris wants to use memset() +#ifdef HAVE_CSTRING +# include <cstring> +#else +# include <string.h> +#endif + +#include <sys/select.h> namespace FbTk {@@ -90,7 +96,7 @@ // only add Timers that actually DO something
if ((! m_timing || m_interval != 0) && *m_handler) { m_timing = true; addTimer(this); //add us to the list - } + } }
M
src/FbTk/Timer.hh
→
src/FbTk/Timer.hh
@@ -45,7 +45,6 @@ #include <inttypes.h>
#endif // HAVE_INTTYPES_H #include <sys/types.h> -#include <sys/select.h> #include <sys/time.h> #include <unistd.h>