X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Ftimer.cc;h=d6bd1ee3d436810c13bf4bbfb909aa37bb5a851c;hb=46441f7d60c008b11a170516734ae7a5932a738e;hp=2d36c7a05e8c476839711e5b9e3537212712568c;hpb=96a9196cbb71b7f8d5e3d98a92b2e59bb1b591a8;p=chaz%2Fopenbox diff --git a/otk/timer.cc b/otk/timer.cc index 2d36c7a0..d6bd1ee3 100644 --- a/otk/timer.cc +++ b/otk/timer.cc @@ -7,6 +7,17 @@ #include "timer.hh" #include "display.hh" +extern "C" { +#ifdef HAVE_SYS_SELECT_H +# include +#else +# ifdef HAVE_UNISTD_H +# include +# include +# endif // HAVE_UNISTD_H +#endif // HAVE_SYS_SELECT_H +} + namespace otk { timeval Timer::_nearest_timeout, Timer::_now;