block: Workaround for older versions of MinGW gcc
commitcee40d2d2dda87fd9705ed4b85e2c0cf0e5c2ac4
authorStefan Weil <sw@weilnetz.de>
Sun, 4 Nov 2012 11:09:34 +0000 (4 12:09 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 14 Nov 2012 17:19:21 +0000 (14 18:19 +0100)
treec7846b6270773f14873d9bd16b4ad9fbe68fad96
parent54d01a0073db56230815d16cf3e6054c1dba919a
block: Workaround for older versions of MinGW gcc

Versions before gcc-4.6 don't support unnamed fields in initializers
(see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676).

Offset and OffsetHigh belong to an unnamed struct which is part of an
unnamed union. Therefore the original code does not work with older
versions of gcc.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/win32-aio.c