summaryrefslogtreecommitdiff
path: root/libiberty/configure.in
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-05-06 20:59:17 +0000
committerRichard Henderson <rth@redhat.com>1999-05-06 20:59:17 +0000
commit4ba4922d82c9c6731db37e9f6cbbb561ec0ca35a (patch)
treeb7a2d833081a1d509019f124465e08c1c8b32cf6 /libiberty/configure.in
parente238e51e090018da87f7fd3f8872abaacd2330be (diff)
downloadgdb-4ba4922d82c9c6731db37e9f6cbbb561ec0ca35a.tar.gz
* 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.
Diffstat (limited to 'libiberty/configure.in')
-rw-r--r--libiberty/configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/configure.in b/libiberty/configure.in
index f02f03561e5..1c1cb0b9748 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