all repos — fluxbox @ 615e9cec3223d7f4661d2b2140661839929cef5d

custom fork of the fluxbox windowmanager

compile fix: FD_ZERO (sys/select.h) on solaris wants to use memset(); closes #2997117
Mathias Gumz akira at fluxbox dot org
commit

615e9cec3223d7f4661d2b2140661839929cef5d

parent

5be5edc1e5760672f11517b8b4c447346157c175

2 files changed, 10 insertions(+), 5 deletions(-)

jump to
M src/FbTk/Timer.ccsrc/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.hhsrc/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>