diff options
author | max <max@tclers.tk> | 2011-06-07 12:53:13 (GMT) |
---|---|---|
committer | max <max@tclers.tk> | 2011-06-07 12:53:13 (GMT) |
commit | cd37602cf4924672b4219fdf144d76e2cf773947 (patch) | |
tree | 794b0807e0ca0d7f65d9b47a740137f4296f2eba /generic/tclIOSock.c | |
parent | a7f1ab1afd109c2c02de573a66aaab15bfbdeab1 (diff) | |
download | tcl-cd37602cf4924672b4219fdf144d76e2cf773947.zip tcl-cd37602cf4924672b4219fdf144d76e2cf773947.tar.gz tcl-cd37602cf4924672b4219fdf144d76e2cf773947.tar.bz2 |
Fix bug#3164655: getaddrinfo() crash on HP-UX
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) { |