diff options
author | max <max@noemail.net> | 2011-06-07 12:53:13 (GMT) |
---|---|---|
committer | max <max@noemail.net> | 2011-06-07 12:53:13 (GMT) |
commit | 681626d6e86d78cfe2daf7d01b9d819d118436b9 (patch) | |
tree | 794b0807e0ca0d7f65d9b47a740137f4296f2eba /generic/tclIOSock.c | |
parent | 783becf12716b7450a6d07583baa108c9b480405 (diff) | |
download | tcl-681626d6e86d78cfe2daf7d01b9d819d118436b9.zip tcl-681626d6e86d78cfe2daf7d01b9d819d118436b9.tar.gz tcl-681626d6e86d78cfe2daf7d01b9d819d118436b9.tar.bz2 |
Fix bug#3164655: getaddrinfo() crash on HP-UX
FossilOrigin-Name: 88194f2c701e9bcf71fde0c44677ab522ef40d7a
Diffstat (limited to 'generic/tclIOSock.c')
-rw-r--r-- | generic/tclIOSock.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tclIOSock.c b/generic/tclIOSock.c index ab2b094..aabd67d 100644 --- a/generic/tclIOSock.c +++ b/generic/tclIOSock.c @@ -178,8 +178,11 @@ TclCreateSocketAddress( } hints.ai_socktype = SOCK_STREAM; -#if defined(AI_ADDRCONFIG) && !defined(_AIX) - /* Missing on: OpenBSD, NetBSD. Causes failure when used on AIX 5.1 */ +#if defined(AI_ADDRCONFIG) && !defined(_AIX) && !defined(__hpux) + /* + * Missing on: OpenBSD, NetBSD. + * Causes failure when used on AIX 5.1 and HP-UX + */ hints.ai_flags |= AI_ADDRCONFIG; #endif if (willBind) { |