From 7110ae4427ed43335640896595d8ccf05f7e6b06 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Fri, 21 Aug 2026 16:08:15 -0400 Subject: [PATCH] libsystemd: guard sd-daemon.h with extern C for c++ consumers --- libsystemd/sd-daemon.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsystemd/sd-daemon.h b/libsystemd/sd-daemon.h index 73389edd..d5c0c13a 100644 --- a/libsystemd/sd-daemon.h +++ b/libsystemd/sd-daemon.h @@ -4,6 +4,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #define SD_LISTEN_FDS_START 3 /* systemd logging defines for stderr parsing by Finit */ @@ -35,4 +39,8 @@ int sd_watchdog_enabled(int unset_environment, uint64_t *usec); /* System detection */ int sd_booted(void); +#ifdef __cplusplus +} +#endif + #endif /* SD_DAEMON_H_ */