Changeset cc9b81e in rtems


Ignore:
Timestamp:
Sep 30, 2009, 6:45:38 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
00da59e4
Parents:
7f9b08a1
Message:

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

  • libcsupport/src/gettod.c: Rework autoconf defines. Eliminate RTEMS_UNIX.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

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

    r7f9b08a1 rcc9b81e  
    1818#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    1919
     20#if defined(RTEMS_NEWLIB)
     21#include <sys/time.h>
     22#include <errno.h>
    2023#include <rtems.h>
    2124
    22 #if !defined(RTEMS_UNIX)
    23 #ifdef RTEMS_NEWLIB
    24 #include <sys/reent.h>
    25 #endif
    26 
    27 #include <sys/time.h>
    28 #include <time.h>
    29 
    30 #include <errno.h>
    31 
     25#if defined(RTEMS_NEWLIB) && !defined(HAVE_GETTIMEOFDAY)
    3226/*
    3327 *  NOTE:  The solaris gettimeofday does not have a second parameter.
    3428 */
    35 
    3629int gettimeofday(
    3730  struct timeval  *tp,
     
    6053  return 0;
    6154}
     55#endif
    6256
    63 #if defined(RTEMS_NEWLIB)
     57#if defined(RTEMS_NEWLIB) && !defined(HAVE__GETTIMEOFDAY_R)
     58
     59#include <sys/reent.h>
    6460
    6561/*
    6662 *  "Reentrant" version
    6763 */
    68 
    6964int _gettimeofday_r(
    7065  struct _reent   *ignored_reentrancy_stuff __attribute__((unused)),
     
    7570  return gettimeofday( tp, tzp );
    7671}
     72#endif
    7773
     74#if defined(RTEMS_NEWLIB) && !defined(HAVE__GETTIMEOFDAY)
    7875/*
    7976 *  "System call" version
     
    8784  return gettimeofday( tp, tzp );
    8885}
     86#endif
    8987
    9088#endif /* defined(RTEMS_NEWLIB) */
    91 
    92 #endif
Note: See TracChangeset for help on using the changeset viewer.