X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwatchdog.c;fp=src%2Fwatchdog.c;h=1aa9a51e1ca9e5b0c2fea5ab09695df693a935dc;hb=ba693048ce1a2b629bfed11fceacabe7edc18a78;hp=92144ba0525d271e808a7b35e44dc22b1b780cbb;hpb=8538d642f01c8ee185cb356eba2c2f19cf4cea58;p=src%2Fapp-framework-binder.git diff --git a/src/watchdog.c b/src/watchdog.c index 92144ba0..1aa9a51e 100644 --- a/src/watchdog.c +++ b/src/watchdog.c @@ -23,19 +23,26 @@ #include +#include "jobs.h" + +#if WITH_SYSTEMD + #include #include -#include "jobs.h" #include "systemd.h" +#endif + int watchdog_activate() { +#if WITH_SYSTEMD /* set the watchdog */ if (sd_watchdog_enabled(0, NULL)) { jobs_acquire_event_manager(); sd_event_set_watchdog(systemd_get_event_loop(), 1); } +#endif return 0; }