Skip to content
Snippets Groups Projects
Commit 6ae2d642 authored by root's avatar root
Browse files

daemon:systemd fix

parent 153b4e04
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ ifneq (,$(findstring luajit, $(lua_LIBS)))
endif
endif
ifdef HAS_libsystemd
ifeq ($(HAS_libsystemd), yes)
BUILD_CFLAGS += -DHAS_SYSTEMD
endif
......
......@@ -32,7 +32,7 @@
#include "daemon/engine.h"
#include "daemon/bindings.h"
#if HAS_SYSTEMD
#ifdef HAS_SYSTEMD
#include <systemd/sd-daemon.h>
#endif
......@@ -45,7 +45,7 @@ static bool g_interactive = true;
/* Signal started state to the init system. */
static void init_signal_started(void)
{
#if HAS_SYSTEMD
#ifdef HAS_SYSTEMD
sd_notify(0, "READY=1");
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment