* configure.in (AC_CHECK_HEADERS): Add time.h.
[deliverable/binutils-gdb.git] / libiberty / getruntime.c
index b855ea6e82f56c35ceb92b9a8724c4d571f6be66..4abfa83bf337b702d1d37397f0e6262e836c1634 100644 (file)
@@ -26,10 +26,20 @@ Boston, MA 02111-1307, USA.  */
    single way is available for all host systems, nor are there reliable
    ways to find out which way is correct for a given host. */
 
-#include <time.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+#  include <sys/time.h>
+# else
+#  ifdef HAVE_TIME_H
+#   include <time.h>
+#  endif
+# endif
+#endif
 
 #if defined (HAVE_GETRUSAGE) && defined (HAVE_SYS_RESOURCE_H)
-#include <sys/time.h>
 #include <sys/resource.h>
 #endif
 
This page took 0.024394 seconds and 4 git commands to generate.