chiark / gitweb /
api: unify some common bits used by public systemd APIs
[elogind.git] / src / systemd / sd-shutdown.h
index b8f6a487ecdb391a8a5d7318e3cd6433b311d2e2..6698c8c5c420de29ae456c3b90948a1c40a1476d 100644 (file)
@@ -26,6 +26,8 @@
 
 #include <inttypes.h>
 
+#include "_sd-common.h"
+
 typedef enum sd_shutdown_mode {
         SD_SHUTDOWN_NONE = 0,
         SD_SHUTDOWN_REBOOT = 'r',
@@ -55,7 +57,7 @@ struct sd_shutdown_command {
         /* The wall message to send around. Leave empty for the
          * default wall message */
         char wall_message[];
-} __attribute__((packed));
+} _sd_packed_;
 
 /* The scheme is very simple:
  *