diff options
Diffstat (limited to 'lib/TaskMan.cc')
-rw-r--r-- | lib/TaskMan.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/TaskMan.cc b/lib/TaskMan.cc index 8cb2e8e..c1c60ae 100644 --- a/lib/TaskMan.cc +++ b/lib/TaskMan.cc @@ -7,8 +7,11 @@ #include <sys/types.h> #include <unistd.h> #include <vector> -#include "TaskMan.h" +#ifdef HAVE_CONFIG_H #include "config.h" +#endif +#include "TaskMan.h" +#include "gettext.h" #define USE_POLL 1 @@ -267,7 +270,7 @@ void TaskMan::MainLoop() throw (GeneralException) { event = E_TIMEOUT; if (!w4to.empty()) { - time_t curtime = time(); + time_t curtime = time(NULL); for (std::vector<w4to_t>::iterator p = w4to.begin(); p != w4to.end(); p++) { int cur_to; cur_to = (p->to.tv_sec - curtime) * 1000 + p->to.tv_usec; |