]> Dogcows Code - chaz/openbox/blobdiff - otk/timer.hh
dont let this run past the buffer edge
[chaz/openbox] / otk / timer.hh
index 1d93f9145c5178f50655ba680d013b147e94e709..0ca8be8d83af025e12c44da48b6c5b255f4b4c05 100644 (file)
@@ -17,11 +17,6 @@ extern "C" {
 #    include <time.h>
 #  endif // HAVE_SYS_TIME_H
 #endif // TIME_WITH_SYS_TIME
-
-#ifdef    HAVE_UNISTD_H
-#  include <sys/types.h>
-#  include <unistd.h>
-#endif // HAVE_UNISTD_H
 }
 
 #include <queue>
@@ -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<Timer*, std::vector<Timer*>, TimerCompare> TimerQ;
This page took 0.019992 seconds and 4 git commands to generate.