#include <json-c/json.h>
-#include <systemd/sd-daemon.h>
+#if WITH_SYSTEMD
+# include <systemd/sd-daemon.h>
+#endif
#include "afb-args.h"
#include "afb-hswitch.h"
goto error;
/* ready */
+#if WITH_SYSTEMD
sd_notify(1, "READY=1");
+#endif
/* activate the watchdog */
#if HAS_WATCHDOG