]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block.c
Use new macro QEMU_PACKED for packed structures
[mirror_qemu.git] / block.c
diff --git a/block.c b/block.c
index 03a21d88de258f583911c45895cb0f6b36c26f28..43742b73c0bb2ad164d6683a947af564be1ed584 100644 (file)
--- a/block.c
+++ b/block.c
@@ -1327,7 +1327,7 @@ struct partition {
         uint8_t end_cyl;            /* end cylinder */
         uint32_t start_sect;        /* starting sector counting from 0 */
         uint32_t nr_sects;          /* nr of sectors in partition */
-} __attribute__((packed));
+} QEMU_PACKED;
 
 /* try to guess the disk logical geometry from the MSDOS partition table. Return 0 if OK, -1 if could not guess */
 static int guess_disk_lchs(BlockDriverState *bs,