# 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>
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;