[PATCH 5/8] Remove optional getrusage() declaration
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Oct 18 13:00:11 UTC 2018
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 149eb0bda0..ae96f5567c 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 3947be94e1..56ddb7488e 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;
--
2.16.4
More information about the devel
mailing list