aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/libc/stdio/fopen.c2
-rw-r--r--newlib/libc/stdio/rename.c3
-rw-r--r--newlib/libc/stdio64/fopen64.c2
3 files changed, 2 insertions, 5 deletions
diff --git a/newlib/libc/stdio/fopen.c b/newlib/libc/stdio/fopen.c
index 1ac551f..8239fd6 100644
--- a/newlib/libc/stdio/fopen.c
+++ b/newlib/libc/stdio/fopen.c
@@ -107,9 +107,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <stdio.h>
#include <errno.h>
#include <sys/lock.h>
-#ifdef __CYGWIN__
#include <fcntl.h>
-#endif
#include "local.h"
FILE *
diff --git a/newlib/libc/stdio/rename.c b/newlib/libc/stdio/rename.c
index 16ef3e3..9abc0d3 100644
--- a/newlib/libc/stdio/rename.c
+++ b/newlib/libc/stdio/rename.c
@@ -51,7 +51,8 @@ Supporting OS subroutines required: <<link>>, <<unlink>>, or <<rename>>.
#include <stdio.h>
#include <sys/unistd.h>
-#ifndef _REENT_ONLY
+#if !defined(_REENT_ONLY) && !( \
+ defined(REENTRANT_SYSCALLS_PROVIDED) && defined(MISSING_SYSCALL_NAMES))
int
rename (const char *old,
diff --git a/newlib/libc/stdio64/fopen64.c b/newlib/libc/stdio64/fopen64.c
index 75d2c2c..4eee1f2 100644
--- a/newlib/libc/stdio64/fopen64.c
+++ b/newlib/libc/stdio64/fopen64.c
@@ -56,9 +56,7 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <stdio.h>
#include <errno.h>
#include "local.h"
-#ifdef __CYGWIN__
#include <fcntl.h>
-#endif
#include <sys/lock.h>
#ifdef __LARGE64_FILES