summaryrefslogtreecommitdiffstats
path: root/cpukit/configure.ac
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-12-13 06:47:21 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-12-13 06:47:21 +0000
commit66496446db44ed793dff3a05a6a68f13d0815e41 (patch)
treee78172f626c2a6751f54b1566a9c6c5acdc294fd /cpukit/configure.ac
parent2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-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 'cpukit/configure.ac')
-rw-r--r--cpukit/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index 03e0f1e726..e3c6a59e74 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -98,6 +98,9 @@ RTEMS_CHECK_FUNC([pthread_attr_setguardsize],[#include <pthread.h>])
RTEMS_CHECK_FUNC([pthread_attr_setstack],[#include <pthread.h>])
RTEMS_CHECK_FUNC([pthread_attr_getstack],[#include <pthread.h>])
+# 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([ttyname getcwd])
# </FIXME>