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/sysclose.c')
-rw-r--r--newlib/libc/syscalls/sysclose.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/syscalls/sysclose.c b/newlib/libc/syscalls/sysclose.c
index d05d2866c..90f321fc0 100644
--- a/newlib/libc/syscalls/sysclose.c
+++ b/newlib/libc/syscalls/sysclose.c
@@ -6,5 +6,9 @@ int
_DEFUN (close, (fd),
int fd)
{
+#ifdef REENTRANT_SYSCALLS_PROVIDED
return _close_r (_REENT, fd);
+#else
+ return _close (fd);
+#endif
}