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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user