1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

Fix portability failure if netdb.h lacks NO_ADDRESS

This commit is contained in:
Daniel Veillard 2012-04-02 17:48:53 +08:00
parent ac17e5939c
commit d95b689fd9

View File

@ -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.";