mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 17:36:15 +08:00
Remove optional getrusage() declaration
Declaration provided by Newlib since 2014. Update #3409.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user