From: Zbigniew Jędrzejewski-Szmek Date: Wed, 21 Mar 2018 15:35:02 +0000 (+0100) Subject: man: fix compilation of journal-iterate-poll.c X-Git-Tag: v239~477^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1027e0dc4d84fc7b6b500ee74d13439f322633eb;p=thirdparty%2Fsystemd.git man: fix compilation of journal-iterate-poll.c Our examples should compile... --- diff --git a/man/journal-iterate-poll.c b/man/journal-iterate-poll.c index 174f6038fda..100d07e2028 100644 --- a/man/journal-iterate-poll.c +++ b/man/journal-iterate-poll.c @@ -1,11 +1,13 @@ #include +#include #include 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 {