diff options
author | Fred Fish <fnf@be.com> | 1999-05-06 20:57:01 +0000 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-05-06 13:57:01 -0700 |
commit | 6a071f4a749850d8e8d918dfb14572659aacc4b9 (patch) | |
tree | c84425eff1ad8e35c49d867dbd132fee45ed254a /libiberty/configure.in | |
parent | 3dde7044de9d194c0bda7b1949d0a0cc5ea773fe (diff) | |
download | gcc-6a071f4a749850d8e8d918dfb14572659aacc4b9.zip gcc-6a071f4a749850d8e8d918dfb14572659aacc4b9.tar.gz gcc-6a071f4a749850d8e8d918dfb14572659aacc4b9.tar.bz2 |
Fred Fish <fnf@be.com>
Fred Fish <fnf@be.com>
* configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
* getruntime.c: Only attempt to include sys/resource.h and
use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
are defined.
From-SVN: r26808
Diffstat (limited to 'libiberty/configure.in')
-rw-r--r-- | libiberty/configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/configure.in b/libiberty/configure.in index 77eec3b..3fcfe9d 100644 --- a/libiberty/configure.in +++ b/libiberty/configure.in @@ -106,7 +106,7 @@ AC_SUBST_FILE(host_makefile_frag) # It's OK to check for header files. Although the compiler may not be # able to link anything, it had better be able to at least compile # something. -AC_CHECK_HEADERS(sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h) +AC_CHECK_HEADERS(sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h) AC_HEADER_SYS_WAIT # This is the list of functions which libiberty will provide if they |