]> git.proxmox.com Git - mirror_qemu.git/blobdiff - nbd.h
Use new macro QEMU_PACKED for packed structures
[mirror_qemu.git] / nbd.h
diff --git a/nbd.h b/nbd.h
index b38d0d08de2d80bdf545251f8b02921234b973c5..96f77fe2d13f336ffba5ab4bff3e45e66e66e055 100644 (file)
--- 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,