summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-10-07 23:36:27 (GMT)
committernijtmans <nijtmans>2010-10-07 23:36:27 (GMT)
commitdf3f7a53424e12a05a6816ca12e8436febe5983f (patch)
tree6e879a8850df3676381b079f5bcf3008c4fad189
parent7d05f3e800ea7d43ff146b25a61e7c60c182738b (diff)
downloadtcl-df3f7a53424e12a05a6816ca12e8436febe5983f.zip
tcl-df3f7a53424e12a05a6816ca12e8436febe5983f.tar.gz
tcl-df3f7a53424e12a05a6816ca12e8436febe5983f.tar.bz2
On Windows, use gai_strerrorA
-rw-r--r--ChangeLog4
-rw-r--r--generic/tclIOSock.c8
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c23d9b4..9c67373 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-08 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * generic/tclIOSock.c: On Windows, use gai_strerrorA
+
2010-10-06 Don Porter <dgp@users.sourceforge.net>
* tests/winPipe.test: Test hygiene with makeFile and removeFile.
diff --git a/generic/tclIOSock.c b/generic/tclIOSock.c
index 15de01e..2780462 100644
--- a/generic/tclIOSock.c
+++ b/generic/tclIOSock.c
@@ -8,10 +8,16 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIOSock.c,v 1.12 2010/09/28 15:13:54 rmax Exp $
+ * RCS: @(#) $Id: tclIOSock.c,v 1.13 2010/10/07 23:36:27 nijtmans Exp $
*/
#include "tclInt.h"
+
+#if defined(_WIN32) && defined(UNICODE)
+/* On Windows, we always need the ASCII version. */
+# undef gai_strerror
+# define gai_strerror gai_strerrorA
+#endif
/*
*---------------------------------------------------------------------------