Changeset 00da59e4 in rtems


Ignore:
Timestamp:
Sep 30, 2009, 6:51:15 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
346725c
Parents:
cc9b81e
Message:

2009-09-30 Ralf Corsépius <ralf.corsepius@…>

  • libcsupport/src/_rename_r.c: Rework autoconf defines. Remove unused includes.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rcc9b81e r00da59e4  
    112009-09-30      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libcsupport/src/_rename_r.c: Rework autoconf defines.
     4        Remove unused includes.
    35        * libcsupport/src/__gettod.c: Rework autoconf defines.
    46        Eliminate RTEMS_UNIX.
  • cpukit/libcsupport/src/_rename_r.c

    rcc9b81e r00da59e4  
    1616#endif
    1717
    18 #include <stdio.h>
     18#if defined(RTEMS_NEWLIB) && !defined(HAVE__RENAME_R)
     19#include <sys/types.h>
     20#include <sys/stat.h>
     21#include <unistd.h>
     22
    1923#include <reent.h>
    20 
    21 #include <rtems.h>
    22 #include <rtems/libio.h>
    23 #include <errno.h>
    24 
    25 #include <rtems/libio_.h>
    26 #include <rtems/seterr.h>
    27 
    28 #include <sys/stat.h>
    2924
    3025int _rename_r(
     
    4540  return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old );
    4641}
     42#endif
Note: See TracChangeset for help on using the changeset viewer.