X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ftimer.hh;h=0ca8be8d83af025e12c44da48b6c5b255f4b4c05;hb=a7ccc544500fe84e707f6e511261276b819d8906;hp=1d93f9145c5178f50655ba680d013b147e94e709;hpb=96a9196cbb71b7f8d5e3d98a92b2e59bb1b591a8;p=chaz%2Fopenbox diff --git a/otk/timer.hh b/otk/timer.hh index 1d93f914..0ca8be8d 100644 --- a/otk/timer.hh +++ b/otk/timer.hh @@ -17,11 +17,6 @@ extern "C" { # include # endif // HAVE_SYS_TIME_H #endif // TIME_WITH_SYS_TIME - -#ifdef HAVE_UNISTD_H -# include -# include -#endif // HAVE_UNISTD_H } #include @@ -47,6 +42,7 @@ private: return timercmp(&a->_timeout, &b->_timeout, >); } }; + friend struct TimerCompare; // give access to _timeout for shitty compilers typedef std::priority_queue, TimerCompare> TimerQ;