mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00:00
man: fix compilation of journal-iterate-poll.c
Our examples should compile...
This commit is contained in:
parent
c0be035da7
commit
1027e0dc4d
|
@ -1,11 +1,13 @@
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
#include <time.h>
|
||||||
#include <systemd/sd-journal.h>
|
#include <systemd/sd-journal.h>
|
||||||
|
|
||||||
int wait_for_changes(sd_journal *j) {
|
int wait_for_changes(sd_journal *j) {
|
||||||
struct pollfd pollfd;
|
uint64_t t;
|
||||||
int msec;
|
int msec;
|
||||||
|
struct pollfd pollfd;
|
||||||
|
|
||||||
sd_journal_get_timeout(m, &t);
|
sd_journal_get_timeout(j, &t);
|
||||||
if (t == (uint64_t) -1)
|
if (t == (uint64_t) -1)
|
||||||
msec = -1;
|
msec = -1;
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue