[rtems commit] Remove optional getrusage() declaration
Sebastian Huber
sebh at rtems.org
Mon Oct 22 06:16:37 UTC 2018
Module: rtems
Branch: master
Commit: 79d145a7a22643c1e22d2795314272a6addc5733
Changeset: http://git.rtems.org/rtems/commit/?id=79d145a7a22643c1e22d2795314272a6addc5733
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Oct 18 14:36:44 2018 +0200
Remove optional getrusage() declaration
Declaration provided by Newlib since 2014.
Update #3409.
---
cpukit/configure.ac | 3 ---
cpukit/libcsupport/src/getrusage.c | 4 ----
2 files changed, 7 deletions(-)
diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index 149eb0b..ae96f55 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -160,9 +160,6 @@ AC_MSG_RESULT([no])
])
AC_LANG_POP(C)
-# Mandated by POSIX, not declared in some versions of newlib.
-AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
-
# Newlib's unix/ directory
AC_CHECK_FUNCS([getcwd])
# </FIXME>
diff --git a/cpukit/libcsupport/src/getrusage.c b/cpukit/libcsupport/src/getrusage.c
index 3947be9..56ddb74 100644
--- a/cpukit/libcsupport/src/getrusage.c
+++ b/cpukit/libcsupport/src/getrusage.c
@@ -17,10 +17,6 @@
#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;
More information about the vc
mailing list