1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

patch for socklen_t detection by Albert Chin-A-Young <china@thewrittenword.com>

Daniel
This commit is contained in:
Daniel Veillard
2000-10-11 23:39:43 +00:00
parent cd4296125d
commit b0426caeb9
7 changed files with 41 additions and 33 deletions

View File

@ -678,11 +678,7 @@ xmlNanoHTTPConnectAttempt(struct in_addr ia, int port)
}
if ( FD_ISSET(s, &wfd) ) {
#ifdef HAVE_SOCKLEN_T
socklen_t len;
#else
unsigned int len;
#endif
SOCKLEN_T len;
len = sizeof(status);
if (getsockopt(s, SOL_SOCKET, SO_ERROR, &status, &len) < 0 ) {
/* Solaris error code */