aboutsummaryrefslogtreecommitdiffstats
path: root/nanohttp.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-25 16:35:28 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-25 16:35:28 +0000
commit56b2db7478a1b24516825b74634e6ce45138f4fb (patch)
tree8f2efc5ab46af3bee40957871cd9dc6e789fb16e /nanohttp.c
parent6f4561a49ce71a46972f893cf6e76d92345a2724 (diff)
downloadandroid_external_libxml2-56b2db7478a1b24516825b74634e6ce45138f4fb.tar.gz
android_external_libxml2-56b2db7478a1b24516825b74634e6ce45138f4fb.tar.bz2
android_external_libxml2-56b2db7478a1b24516825b74634e6ce45138f4fb.zip
fixing #76043, got fed up with non-portability of that piece of code.
* nanohttp.c: fixing #76043, got fed up with non-portability of that piece of code. Daniel
Diffstat (limited to 'nanohttp.c')
-rw-r--r--nanohttp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nanohttp.c b/nanohttp.c
index f0d30626..4bbf07cf 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -865,7 +865,13 @@ xmlNanoHTTPConnectHost(const char *host, int port)
#endif
h = gethostbyname(host);
if (h == NULL) {
-#if defined(HAVE_NETDB_H) && defined(HOST_NOT_FOUND)
+
+/*
+ * Okay, I got fed up by the non-portability of this error message
+ * extraction code. it work on Linux, if it work on your platform
+ * and one want to enable it, send me the defined(foobar) needed
+ */
+#if defined(HAVE_NETDB_H) && defined(HOST_NOT_FOUND) && defined(linux)
const char *h_err_txt = "";
switch (h_errno) {