qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] win32: Fix compiler errors from u_int64_t


From: Stefan Weil
Subject: [Qemu-devel] Re: [PATCH] win32: Fix compiler errors from u_int64_t
Date: Mon, 05 Apr 2010 20:01:16 +0200
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)

Michael S. Tsirkin schrieb:
> On Thu, Apr 01, 2010 at 11:56:25PM +0200, Stefan Weil wrote:
>> 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 <address@hidden>
>> Cc: Anthony Liguori <address@hidden>
>> Signed-off-by: Stefan Weil <address@hidden>
>
> Acked-by: Michael S. Tsirkin <address@hidden>
>
> Speaking of which, we have:
> /scm/qemu/slirp/slirp.h:typedef uint64_t u_int64_t;
>
> which we probably don't need either?

Right. I'd even prefer replacing all those u_int#_t types
by the standard types uint#_t.

Is that ok, or would you prefer not to touch the slirp code
(which makes heavy use of those types)?

Regards,
Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]