summaryrefslogtreecommitdiff
path: root/nbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'nbd.h')
-rw-r--r--nbd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/nbd.h b/nbd.h
index b38d0d08de..96f77fe2d1 100644
--- a/nbd.h
+++ b/nbd.h
@@ -31,13 +31,13 @@ struct nbd_request {
uint64_t handle;
uint64_t from;
uint32_t len;
-} __attribute__ ((__packed__));
+} QEMU_PACKED;
struct nbd_reply {
uint32_t magic;
uint32_t error;
uint64_t handle;
-} __attribute__ ((__packed__));
+} QEMU_PACKED;
enum {
NBD_CMD_READ = 0,