Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-30 22:20:28 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-30 22:20:28 +0400
commitac5e21b028491e4ed03aa606113c97cea27a0b53 (patch)
treedee4ed3bbaa4af69bb2c497e3ecb5dd941170a0e /winsup/cygwin
parent26797de3149d9426e1e5150afb56808a6eb77b21 (diff)
* dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/dlfcn.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b201c393b..4e0e50751 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-30 Christopher Faylor <cgf@timesys.com>
+
+ * dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error.
+
2005-05-29 Christopher Faylor <cgf@timesys.com>
* cygmagic: Remove debugging cruft missed on 2005-05-21.
diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc
index fc43ed38f..23e4aed05 100644
--- a/winsup/cygwin/dlfcn.cc
+++ b/winsup/cygwin/dlfcn.cc
@@ -27,7 +27,7 @@ details. */
static void __stdcall
set_dl_error (const char *str)
{
- __small_sprintf (_my_tls.locals.dl_buffer, "%s, %E", str);
+ strcpy (_my_tls.locals.dl_buffer, strerror (get_errno ()));
_my_tls.locals.dl_error = 1;
}