From 00da59e4f2375fc3ff0d58b1312d90f3e2fb6b6d Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 30 Sep 2009 06:51:15 +0000 Subject: =?UTF-8?q?2009-09-30=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libcsupport/src/_rename_r.c: Rework autoconf defines. Remove unused includes. --- cpukit/libcsupport/src/_rename_r.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'cpukit/libcsupport/src/_rename_r.c') diff --git a/cpukit/libcsupport/src/_rename_r.c b/cpukit/libcsupport/src/_rename_r.c index d5e493f92e..12eeb59e53 100644 --- a/cpukit/libcsupport/src/_rename_r.c +++ b/cpukit/libcsupport/src/_rename_r.c @@ -15,17 +15,12 @@ #include "config.h" #endif -#include -#include - -#include -#include -#include - -#include -#include - +#if defined(RTEMS_NEWLIB) && !defined(HAVE__RENAME_R) +#include #include +#include + +#include int _rename_r( struct _reent *ptr __attribute__((unused)), @@ -44,3 +39,4 @@ int _rename_r( return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); } +#endif -- cgit v1.2.3