mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-01-27 05:23:51 +00:00
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
This commit is contained in:
parent
6f4561a49c
commit
56b2db7478
@ -1,3 +1,8 @@
|
||||
Mon Mar 25 17:34:06 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* nanohttp.c: fixing #76043, got fed up with non-portability
|
||||
of that piece of code.
|
||||
|
||||
Mon Mar 25 13:08:21 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* valid.c SAX.c: Never commit without running "make tests" :-(
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user