[libxml2] Fix portability failure if netdb.h lacks NO_ADDRESS



commit d95b689fd9cb994b072e9a874b98ea62be8cc6c6
Author: Daniel Veillard <veillard redhat com>
Date:   Mon Apr 2 17:48:53 2012 +0800

    Fix portability failure if netdb.h lacks NO_ADDRESS

 nanohttp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/nanohttp.c b/nanohttp.c
index fab024c..e6459df 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -1140,10 +1140,12 @@ xmlNanoHTTPConnectHost(const char *host, int port)
 			"Non-recoverable errors:  FORMERR, REFUSED, or NOTIMP.";
 		    break;
 
+#ifdef NO_ADDRESS
 		case NO_ADDRESS:
 		    h_err_txt =
 			"Valid name, no data record of requested type.";
 		    break;
+#endif
 
 		default:
 		    h_err_txt = "No error text defined.";



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