Re: [PATCH] winsock2.h must always be included before windows.h

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

 



On 06/21/2012 07:40 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> Some GNULIB headers (eg unistd.h) will often need to include
> winsock2.h for various symbols. There is a rule that winsock2.h
> must be included before windows.h. This means that any file
> which does
> 
>   #ifdef WIN32
>   #include <windows.h>
>   #endif
>   #include <unistd.h>
> 
> is potentially broken. A simple rule is that /all/ includes of
> windows.h must be matched with a preceeding include of winsock2.h

s/preceeding/preceding/

> regardless of whether unistd.h is used currently
> ---
>  src/util/util.c           |    3 +++
>  src/vbox/vbox_MSCOMGlue.c |    3 +++
>  2 files changed, 6 insertions(+)

ACK.

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



Attachment: signature.asc
Description: OpenPGP digital signature

--
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]