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 | 65315afc2c6509e19f7029db8d8feccf79457b7c (patch) | |
tree | 794b0807e0ca0d7f65d9b47a740137f4296f2eba /generic/tclIOSock.c | |
parent | 0618824f488fb5b0c72f4a9c5369f60f6193a662 (diff) | |
download | tcl-65315afc2c6509e19f7029db8d8feccf79457b7c.zip tcl-65315afc2c6509e19f7029db8d8feccf79457b7c.tar.gz tcl-65315afc2c6509e19f7029db8d8feccf79457b7c.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) { |