[Libvir] 18/22 Misc headers

Richard W.M. Jones rjones at redhat.com
Fri Dec 7 11:43:46 UTC 2007


Miscellaneous changes to headers.  The important one is that if 
<winsock2.h> is available then that replaces all of the usual socket- 
and network database-related headers (which are not available in 
Windows).  Thus you end up with code like this:

#ifndef HAVE_WINSOCK2_H
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#else
#include <winsock2.h>
#endif

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw-18-misc-headers.patch
Type: text/x-patch
Size: 2461 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071207/c9f21c3f/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071207/c9f21c3f/attachment-0003.bin>


More information about the libvir-list mailing list