Changeset 6649644 in rtems


Ignore:
Timestamp:
Dec 13, 2011, 6:47:21 AM (7 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
4b274633
Parents:
055e668
Message:

2011-12-13 Ralf Corsépius <ralf.corsepius@…>

  • configure.ac: Check for getrusage.h decl.
  • libcsupport/src/getrusage.c: Apply HAVE_DECL_GETRUSAGE (Missing prototypes).
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r055e668 r6649644  
     12011-12-13      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * configure.ac: Check for getrusage.h decl.
     4        * libcsupport/src/getrusage.c:
     5        Apply HAVE_DECL_GETRUSAGE (Missing prototypes).
     6
    172011-12-12      Sebastian Huber <sebastian.huber@embedded-brains.de>
    28
  • cpukit/configure.ac

    r055e668 r6649644  
    9898RTEMS_CHECK_FUNC([pthread_attr_setstack],[#include <pthread.h>])
    9999RTEMS_CHECK_FUNC([pthread_attr_getstack],[#include <pthread.h>])
     100
     101# Mandated by POSIX, not declared in some versions of newlib.
     102AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
    100103
    101104# Newlib's unix/ directory
  • cpukit/libcsupport/src/getrusage.c

    r055e668 r6649644  
    1919#include <rtems.h>
    2020#include <rtems/seterr.h>
     21
     22#if !HAVE_DECL_GETRUSAGE
     23extern int getrusage(int who, struct rusage *usage);
     24#endif
    2125
    2226int getrusage(int who, struct rusage *usage)
Note: See TracChangeset for help on using the changeset viewer.