[xml] win32 getaddrinfo
- From: Michael Stahl <Michael Stahl Sun com>
- To: xml gnome org
- Subject: [xml] win32 getaddrinfo
- Date: Mon, 31 Mar 2008 19:04:11 +0200
libxml2 2.6.31 would not build for me on win32.
when linking, it complained about missing getadddrinfo and freeaddrinfo
functions.
because i have no clue when it comes to win32, i googled around, which
yielded a msdn page that claimed that there are inline implementations of
these functions in a certain header, resulting in the following patch.
regards,
michael stahl
--
"In the beginning the Universe was created. This has made a lot of people
very angry and been widely regarded as a bad move." -- Douglas Adams
*** misc/libxml2-2.6.31/nanohttp.c Tue Aug 28 19:34:00 2007
--- misc/build/libxml2-2.6.31/nanohttp.c Mon Mar 31 18:36:16 2008
***************
*** 68,73 ****
--- 68,77 ----
#endif
+ #ifdef _MSC_VER
+ #include <Wspiapi.h> /* for getaddrinfo, freeaddrinfo */
+ #endif
+
#ifdef VMS
#include <stropts>
#define XML_SOCKLEN_T unsigned int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]