diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-13 06:47:21 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-13 06:47:21 +0000 |
commit | 66496446db44ed793dff3a05a6a68f13d0815e41 (patch) | |
tree | e78172f626c2a6751f54b1566a9c6c5acdc294fd /cpukit/libcsupport/src/getrusage.c | |
parent | 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-66496446db44ed793dff3a05a6a68f13d0815e41.tar.bz2 |
2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Check for getrusage.h decl.
* libcsupport/src/getrusage.c:
Apply HAVE_DECL_GETRUSAGE (Missing prototypes).
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/src/getrusage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/getrusage.c b/cpukit/libcsupport/src/getrusage.c index df68376e50..599af833b0 100644 --- a/cpukit/libcsupport/src/getrusage.c +++ b/cpukit/libcsupport/src/getrusage.c @@ -19,6 +19,10 @@ #include <rtems.h> #include <rtems/seterr.h> +#if !HAVE_DECL_GETRUSAGE +extern int getrusage(int who, struct rusage *usage); +#endif + int getrusage(int who, struct rusage *usage) { struct timespec uptime; |