diff options
Diffstat (limited to 'man/journal-iterate-poll.c')
-rw-r--r-- | man/journal-iterate-poll.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/man/journal-iterate-poll.c b/man/journal-iterate-poll.c index 174f6038fd..100d07e202 100644 --- a/man/journal-iterate-poll.c +++ b/man/journal-iterate-poll.c @@ -1,11 +1,13 @@ #include <poll.h> +#include <time.h> #include <systemd/sd-journal.h> int wait_for_changes(sd_journal *j) { - struct pollfd pollfd; + uint64_t t; int msec; + struct pollfd pollfd; - sd_journal_get_timeout(m, &t); + sd_journal_get_timeout(j, &t); if (t == (uint64_t) -1) msec = -1; else { |