diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-13 06:52:09 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-13 06:52:09 +0000 |
commit | 4b2746331189715bb668299fa6d7f5108b31bcce (patch) | |
tree | 310660b68f36ba8c275e84d9afcb25c786cd2bda /testsuites/psxtests/configure.ac | |
parent | 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-4b2746331189715bb668299fa6d7f5108b31bcce.tar.bz2 |
2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Check for getrusage decl.
* psxgetrusage01/init.c:
Fix header file inclusion order.
Move configuration section up.
Apply HAVE_DECL_GETRUSAGE.
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuites/psxtests/configure.ac b/testsuites/psxtests/configure.ac index e438b05d35..858867d9a3 100644 --- a/testsuites/psxtests/configure.ac +++ b/testsuites/psxtests/configure.ac @@ -50,6 +50,9 @@ AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]]) # Added to pthreads after initial revision. May not be in toolset AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]]) +# Mandated by POSIX, not declared in some versions of newlib. +AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h]) + # FIXME: adjtime is a non-standardized BSD/Linux extension # RTEMS should not rely on adjtime AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]]) |