aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure
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
commit33fbbfbc00e8c3a6cbdadfdd367126c5f76170ec (patch)
tree20d6af70a308fc8e21d034cc9b6c8e68c2ae0a5a /libiberty/configure
parent03987ceda10cf6d46476f5bd53be660c018e7d12 (diff)
downloadgdb-33fbbfbc00e8c3a6cbdadfdd367126c5f76170ec.zip
gdb-33fbbfbc00e8c3a6cbdadfdd367126c5f76170ec.tar.gz
gdb-33fbbfbc00e8c3a6cbdadfdd367126c5f76170ec.tar.bz2
* 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')
-rwxr-xr-xlibiberty/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/configure b/libiberty/configure
index 98407e7..0755510 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -1055,7 +1055,7 @@ else
fi
echo "$ac_t""$CPP" 1>&6
-for ac_hdr in sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h
+for ac_hdr in sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6