@@ -17,11 +17,10 @@ #include "config.h" #include #include -#include #ifdef HAVE_FCNTL_H # include #endif #include "unistd_wrapper.h" @@ -163,11 +162,11 @@ if ([self of_processReadBuffers]) return; timeout.tv_sec = (time_t)timeInterval; - timeout.tv_nsec = lrint((timeInterval - timeout.tv_sec) * 1000000000); + timeout.tv_nsec = (timeInterval - timeout.tv_sec) * 1000000000; events = kevent(_kernelQueue, NULL, 0, eventList, EVENTLIST_SIZE, (timeInterval != -1 ? &timeout : NULL)); if (events < 0)