* dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error.

This commit is contained in:
Christopher Faylor 2005-05-30 18:20:28 +00:00
parent 26797de314
commit ac5e21b028
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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;
}