https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9cc89b04383cf097fcd795b1a13670dff0d2854b
commit 9cc89b04383cf097fcd795b1a13670dff0d2854b Author: Corinna Vinschen <cori...@vinschen.de> Date: Wed Jul 19 10:30:47 2017 +0200 cygwin: Use errno instead of _impure_ptr->_errno Signed-off-by: Corinna Vinschen <cori...@vinschen.de> Diff: --- winsup/cygwin/environ.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index 647db5f..10ffd68 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -454,8 +454,7 @@ posify_maybe (char **here, const char *value, char *outenv) memcpy (outenv, src, len); char *newvalue = outenv + len; - if (!conv->toposix (value, newvalue, NT_MAX_PATH - len) - || _impure_ptr->_errno != EIDRM) + if (!conv->toposix (value, newvalue, NT_MAX_PATH - len) || errno != EIDRM) conv->add_cache (newvalue, *value != '/' ? value : NULL); else {