summaryrefslogtreecommitdiff
path: root/src/grp-helperunits/systemd-random-seed
diff options
context:
space:
mode:
Diffstat (limited to 'src/grp-helperunits/systemd-random-seed')
-rw-r--r--src/grp-helperunits/systemd-random-seed/Makefile3
-rw-r--r--src/grp-helperunits/systemd-random-seed/random-seed.c14
2 files changed, 10 insertions, 7 deletions
diff --git a/src/grp-helperunits/systemd-random-seed/Makefile b/src/grp-helperunits/systemd-random-seed/Makefile
index 56d1af7431..65ae60828b 100644
--- a/src/grp-helperunits/systemd-random-seed/Makefile
+++ b/src/grp-helperunits/systemd-random-seed/Makefile
@@ -44,4 +44,7 @@ endif # ENABLE_RANDOMSEED
EXTRA_DIST += \
units/systemd-random-seed.service.in
+systemd.CPPFLAGS += -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\"
+systemd.CPPFLAGS += -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\"
+
include $(topsrcdir)/build-aux/Makefile.tail.mk
diff --git a/src/grp-helperunits/systemd-random-seed/random-seed.c b/src/grp-helperunits/systemd-random-seed/random-seed.c
index 6748bb9dd3..7fea6069f3 100644
--- a/src/grp-helperunits/systemd-random-seed/random-seed.c
+++ b/src/grp-helperunits/systemd-random-seed/random-seed.c
@@ -23,13 +23,13 @@
#include <sys/stat.h>
#include <unistd.h>
-#include "alloc-util.h"
-#include "fd-util.h"
-#include "io-util.h"
-#include "log.h"
-#include "mkdir.h"
-#include "string-util.h"
-#include "util.h"
+#include "basic/alloc-util.h"
+#include "basic/fd-util.h"
+#include "basic/io-util.h"
+#include "basic/log.h"
+#include "basic/mkdir.h"
+#include "basic/string-util.h"
+#include "basic/util.h"
#define POOL_SIZE_MIN 512