chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0095c45
)
shutdown: as sd-shutdown.h is a drop-in header it should not include any other header...
author
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Nov 2013 15:44:59 +0000
(16:44 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Nov 2013 15:53:26 +0000
(16:53 +0100)
src/systemd/sd-shutdown.h
patch
|
blob
|
history
diff --git
a/src/systemd/sd-shutdown.h
b/src/systemd/sd-shutdown.h
index 6698c8c5c420de29ae456c3b90948a1c40a1476d..1d65549882cfe743848cef0b13e3e2b5bc0fa7ef 100644
(file)
--- 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