Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Allow to remove systemd library
[src/app-framework-binder.git]
/
src
/
main-afb-daemon.c
diff --git
a/src/main-afb-daemon.c
b/src/main-afb-daemon.c
index
d825d80
..
705c69f
100644
(file)
--- a/
src/main-afb-daemon.c
+++ b/
src/main-afb-daemon.c
@@
-36,7
+36,9
@@
#include <json-c/json.h>
#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"
#include "afb-args.h"
#include "afb-hswitch.h"
@@
-885,7
+887,9
@@
static void start(int signum, void *arg)
goto error;
/* ready */
goto error;
/* ready */
+#if WITH_SYSTEMD
sd_notify(1, "READY=1");
sd_notify(1, "READY=1");
+#endif
/* activate the watchdog */
#if HAS_WATCHDOG
/* activate the watchdog */
#if HAS_WATCHDOG