aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/reent/linkr.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/reent/linkr.c')
-rw-r--r--newlib/libc/reent/linkr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/reent/linkr.c b/newlib/libc/reent/linkr.c
index b22da5f..169b6ee 100644
--- a/newlib/libc/reent/linkr.c
+++ b/newlib/libc/reent/linkr.c
@@ -51,7 +51,7 @@ _link_r (struct _reent *ptr,
errno = 0;
if ((ret = _link (old, new)) == -1 && errno != 0)
- ptr->_errno = errno;
+ _REENT_ERRNO(ptr) = errno;
return ret;
}