mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
Merge pull request #501 from aanderse/libsystemd
libsystemd: guard sd-daemon.h with extern C for c++ consumers
This commit is contained in:
1 file changed
+8
@@ -4,6 +4,10 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SD_LISTEN_FDS_START 3
|
#define SD_LISTEN_FDS_START 3
|
||||||
|
|
||||||
/* systemd logging defines for stderr parsing by Finit */
|
/* systemd logging defines for stderr parsing by Finit */
|
||||||
@@ -35,4 +39,8 @@ int sd_watchdog_enabled(int unset_environment, uint64_t *usec);
|
|||||||
/* System detection */
|
/* System detection */
|
||||||
int sd_booted(void);
|
int sd_booted(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* SD_DAEMON_H_ */
|
#endif /* SD_DAEMON_H_ */
|
||||||
Reference in new issue
Block a user