summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-12-04 16:55:52 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-12-04 16:55:52 (GMT)
commit003d1220e705f2bac33e44e0c1752bd43e1efd6d (patch)
tree033038430fcbb6f0cce3680b00f8b5a644b1420b /unix/tclUnixChan.c
parentfdac2b39fea8099117e984579453fdf0d129ae07 (diff)
downloadtcl-003d1220e705f2bac33e44e0c1752bd43e1efd6d.zip
tcl-003d1220e705f2bac33e44e0c1752bd43e1efd6d.tar.gz
tcl-003d1220e705f2bac33e44e0c1752bd43e1efd6d.tar.bz2
merge updates from HEAD
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 5d81a57..2745e9b 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixChan.c,v 1.77.2.5 2007/11/16 07:20:58 dgp Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.77.2.6 2007/12/04 16:55:54 dgp Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -2686,8 +2686,12 @@ CreateSocketAddress(
switch (result) {
case EAI_NONAME:
case EAI_SERVICE:
+#if defined(EAI_ADDRFAMILY) && EAI_ADDRFAMILY != EAI_NONAME
case EAI_ADDRFAMILY:
+#endif
+#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME
case EAI_NODATA:
+#endif
*errorMsgPtr = gai_strerror(result);
errno = EHOSTUNREACH;
return 0;