* timer.cc: Only #include <sys/times.h> if HAVE_TIMES is defined.
authorIan Lance Taylor <ian@airs.com>
Wed, 26 May 2010 00:13:05 +0000 (00:13 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 26 May 2010 00:13:05 +0000 (00:13 +0000)
gold/ChangeLog
gold/timer.cc

index b66743ae339b09188f096b889fc09faa9fc97d15..a76baf8b74b7a749beda15ad98dda8a4f349cab3 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-25  Viktor Kutuzov  <vkutuzov@accesssoftek.com>
+
+       * timer.cc: Only #include <sys/times.h> if HAVE_TIMES is defined.
+
 2010-05-23  Doug Kwan  <dougkwan@google.com>
 
        * arm.cc (Arm_input_section::do_output_offset): Use convert_types
index ec51bc9151e133a26caf48cbc44a9dcf441a5e34..29eaa5561a70cbd7e5a022b31e2812d15d10cda6 100644 (file)
@@ -1,6 +1,6 @@
 // timer.cc -- helper class for time accounting
 
-// Copyright 2009 Free Software Foundation, Inc.
+// Copyright 2009, 2010 Free Software Foundation, Inc.
 // Written by Rafael Avila de Espindola <espindola@google.com>.
 
 // This file is part of gold.
@@ -22,7 +22,9 @@
 
 #include "gold.h"
 
+#ifdef HAVE_TIMES
 #include <sys/times.h>
+#endif
 
 #include "libiberty.h"