summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-07 16:44:59 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-07 16:53:26 +0100
commit2cd33d82b6b4dd3eec3ccf6b8da36f3f3312ff32 (patch)
treee94dbb857def4045a9e030673915eb5aa8af7461 /src
parent0095c45415ad24338342369d76d5635088294eae (diff)
shutdown: as sd-shutdown.h is a drop-in header it should not include any other headers of ours
Diffstat (limited to 'src')
-rw-r--r--src/systemd/sd-shutdown.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/systemd/sd-shutdown.h b/src/systemd/sd-shutdown.h
index 6698c8c5c4..1d65549882 100644
--- a/src/systemd/sd-shutdown.h
+++ b/src/systemd/sd-shutdown.h
@@ -26,7 +26,13 @@
#include <inttypes.h>
-#include "_sd-common.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _sd_packed_
+# define _sd_packed_ __attribute__((packed))
+#endif
typedef enum sd_shutdown_mode {
SD_SHUTDOWN_NONE = 0,
@@ -107,4 +113,8 @@ struct sd_shutdown_command {
* anybody.
*/
+#ifdef __cplusplus
+}
+#endif
+
#endif