Re: [libvirt] PATCH: Fix Windows / mingw32 build

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

 



"Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote:
> There are a number of problems breaking the windows / mingw
> build currently.
>
>  - Use of 'close' without importing unistd.h
>  - Use of non-existant localtime_r
>  - ERROR macro from logging.h clashes with a symbol imported
>    from windows.h
>
> So this patch does
>
>  - Adds the missing unistd.h include
>  - Uses localtime() if localtime_r() is missing (as checked from
>    configure)

That all looks fine.
However, since there's an LGPLv2+ gnulib module that provides
localtime_r (called time_r) you may want to skip that part.
Or just go ahead with what you have and I'll undo
things when I've confirmed pulling in the new module works
as expected.

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]