Remove optional getrusage() declaration

Declaration provided by Newlib since 2014.

Update #3409.
This commit is contained in:
Sebastian Huber
2018-10-22 08:06:06 +02:00
parent e161767e51
commit 79d145a7a2
2 changed files with 0 additions and 7 deletions
-3
View File
@@ -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>
-4
View File
@@ -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;