[libvirt] [PATCH] Fix MinGW build

Eric Blake eblake at redhat.com
Wed Sep 24 20:02:28 UTC 2014


On 09/24/2014 01:53 PM, Eric Blake wrote:
> On 09/24/2014 06:13 AM, Pavel Hrdina wrote:
>> When building on mingw the format string for long long/unsigned long
>> long have to be I64d/I64u instead of lld/llu.
>>
>> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
>> ---
> 
> Yuck.  This is really a problem of the examples directory not taking
> advantage of gnulib.  I really don't like this solution.

Oh, another solution would be to link this example against gnulib.  See
how domtop/Makefile.am pulls in libgnu.la, so that it can use %zu
without problems (%zu is in the same boat as %lld for mingw
unsupported-ness).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140924/8b30803d/attachment-0001.sig>


More information about the libvir-list mailing list