fixup! WIP: find libsystemd with autoconfig

This commit is contained in:
2025-03-29 16:25:48 +01:00
parent 3761a26a59
commit 161e2b8ed7
10 changed files with 55 additions and 3 deletions

View File

@@ -36,6 +36,9 @@
#include <gssapi.h>
#include <gssapi_krb5.h>
#include <gssapi_spnego.h>
#ifdef HAVE_SYSTEMD
#include <systemd/sd-daemon.h>
#endif
#define CHECK(x) \
do { \
@@ -799,6 +802,10 @@ process_stream(krb5_context contextp,
*/
INSIST(ilen >= 4);
#ifdef HAVE_SYSTEMD
sd_notify(0, "READY=1");
#endif
while (1) {
struct call_header chdr;
@@ -1129,6 +1136,10 @@ process_stream(krb5_context contextp,
}
}
#ifdef HAVE_SYSTEMD
sd_notify(0, "STOPPING=1");
#endif
}