]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: systemd: fix build error on non-systemd systems with USE_SYSTEMD=1
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Apr 2024 15:32:20 +0000 (17:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Apr 2024 15:34:36 +0000 (17:34 +0200)
Thanks to previous commit, we can now build with USE_SYSTEMD=1 on any
system without requiring any parts from systemd. It just turns our that
there was one remaining include in haproxy.c that needed to be replaced
with haproxy/systemd.h to build correctly. That's what this commit does.

src/haproxy.c

index 7b2a18a72aa88150d9d916cd82b03387fcc388d7..0fcc3e54160514d18677953ec8e235f6297947b4 100644 (file)
@@ -60,7 +60,7 @@
 #include <assert.h>
 #endif
 #if defined(USE_SYSTEMD)
-#include <systemd/sd-daemon.h>
+#include <haproxy/systemd.h>
 #endif
 
 #include <import/sha1.h>