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:
Diffstat (limited to 'newlib/libc/syscalls/syslink.c')
-rw-r--r--newlib/libc/syscalls/syslink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/syscalls/syslink.c b/newlib/libc/syscalls/syslink.c
index 841684f46..df235eeaa 100644
--- a/newlib/libc/syscalls/syslink.c
+++ b/newlib/libc/syscalls/syslink.c
@@ -7,5 +7,9 @@ _DEFUN (link, (old, new),
char *old _AND
char *new)
{
+#ifdef REENTRANT_SYSCALLS_PROVIDED
return _link_r (_REENT, old, new);
+#else
+ return _link (old, new);
+#endif
}