Re: [PATCH] A few more Windows / MinGW fixups

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

 



On Sat, Jan 05, 2008 at 12:02:49AM +0000, Daniel P. Berrange wrote:
> On Fri, Jan 04, 2008 at 12:57:16PM +0000, Richard W.M. Jones wrote:
> > A few fairly miscellaneous fixups for Windows (MinGW) which fix shared 
> > library builds and fix error handling for sockets.
> > 
> > (1) XDR functions on MinGW come from a library called 'libxdr', not 
> > 'librpc'.
> > 
> > (2) To build a DLL under MinGW we need to pass the -no-undefined flag to 
> > the linker.
> > 
> > (3) Socket compatibility header file replaces <winsock2.h> inclusion. 
> > This just defines a portable 'socket_errno()' function which returns 
> > errno in the normal case, or WSAGetLastError() in the Windows case.
> > 
> > (4) Use socket_errno() instead of errno in a few cases (but only when 
> > the code can be compiled under Windows, ie. only in the remote client case).
> 
> ACK. All looks good to me.

  Agreed, trying to isolate Windows specifics networking bits in a 
special header is a good idea +1


Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

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