Add support for target specific processing of ELF segments
[deliverable/binutils-gdb.git] / libiberty / getruntime.c
index 6e70773bd94bae14cc931c9f223f9a88046ae151..b855ea6e82f56c35ceb92b9a8724c4d571f6be66 100644 (file)
@@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA.  */
 
 #include <time.h>
 
-#ifdef HAVE_GETRUSAGE
+#if defined (HAVE_GETRUSAGE) && defined (HAVE_SYS_RESOURCE_H)
 #include <sys/time.h>
 #include <sys/resource.h>
 #endif
@@ -66,7 +66,7 @@ Boston, MA 02111-1307, USA.  */
 long
 get_run_time ()
 {
-#ifdef HAVE_GETRUSAGE
+#if defined (HAVE_GETRUSAGE) && defined (HAVE_SYS_RESOURCE_H)
   struct rusage rusage;
 
   getrusage (0, &rusage);
This page took 0.023126 seconds and 4 git commands to generate.