From bca1c3ae452b3f573f01a9e5b060c3cdd1fbe076 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 26 May 2010 00:13:05 +0000 Subject: [PATCH] * timer.cc: Only #include if HAVE_TIMES is defined. --- gold/ChangeLog | 4 ++++ gold/timer.cc | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index b66743ae339..a76baf8b74b 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,7 @@ +2010-05-25 Viktor Kutuzov + + * timer.cc: Only #include if HAVE_TIMES is defined. + 2010-05-23 Doug Kwan * arm.cc (Arm_input_section::do_output_offset): Use convert_types diff --git a/gold/timer.cc b/gold/timer.cc index ec51bc9151e..29eaa5561a7 100644 --- a/gold/timer.cc +++ b/gold/timer.cc @@ -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 . // This file is part of gold. @@ -22,7 +22,9 @@ #include "gold.h" +#ifdef HAVE_TIMES #include +#endif #include "libiberty.h" -- 2.30.2