diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-04-01 16:59:51 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-04-01 17:01:02 -0500 |
commit | 2b3af999845db4b5546e5d0d46eb615381cd9dc0 (patch) | |
tree | 8bd420e31ea4570e7f1df429c709a8306bfbe138 /hw/virtio.c | |
parent | a18f844fb552586651c9b7534c0370669f0701c3 (diff) |
win32: Fix compiler errors from u_int64_t
u_int64_t raises compiler error messages:
CC libhw32/virtio.o
/qemu/ar7/hw/virtio.c: In function ‘virtio_queue_get_avail_size’:
/qemu/ar7/hw/virtio.c:776: error: ‘u_int64_t’ undeclared (first use in this function)
/qemu/ar7/hw/virtio.c:776: error: (Each undeclared identifier is reported only once
/qemu/ar7/hw/virtio.c:776: error: for each function it appears in.)
Replacing u_int64_t by uint64_t helps.
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio.c')
-rw-r--r-- | hw/virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio.c b/hw/virtio.c index f54129f658..e7657ae8aa 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -773,7 +773,7 @@ target_phys_addr_t virtio_queue_get_desc_size(VirtIODevice *vdev, int n) target_phys_addr_t virtio_queue_get_avail_size(VirtIODevice *vdev, int n) { return offsetof(VRingAvail, ring) + - sizeof(u_int64_t) * vdev->vq[n].vring.num; + sizeof(uint64_t) * vdev->vq[n].vring.num; } target_phys_addr_t virtio_queue_get_used_size(VirtIODevice *vdev, int n) |