
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@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/