summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'extras/volume_id/lib/util.h')
-rw-r--r--extras/volume_id/lib/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/volume_id/lib/util.h b/extras/volume_id/lib/util.h
index 2abf05df74..964e70196a 100644
--- a/extras/volume_id/lib/util.h
+++ b/extras/volume_id/lib/util.h
@@ -23,6 +23,10 @@
#include <byteswap.h>
#include <syslog.h>
+#ifndef PACKED
+#define PACKED __attribute__((packed))
+#endif
+
#define err(format, arg...) volume_id_log_fn(LOG_ERR, __FILE__, __LINE__, format, ##arg)
#define info(format, arg...) volume_id_log_fn(LOG_INFO, __FILE__, __LINE__, format, ##arg)
#ifdef DEBUG