aboutsummaryrefslogtreecommitdiff
path: root/gold/timer.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-05-26 00:13:05 +0000
committerIan Lance Taylor <ian@airs.com>2010-05-26 00:13:05 +0000
commitbca1c3ae452b3f573f01a9e5b060c3cdd1fbe076 (patch)
tree3af3b17bfbe61671b44fef578c255563afc1d32e /gold/timer.cc
parente64f12acb50f8ddb2f4c8ba5411c921c3e5e65cb (diff)
downloadgdb-bca1c3ae452b3f573f01a9e5b060c3cdd1fbe076.zip
gdb-bca1c3ae452b3f573f01a9e5b060c3cdd1fbe076.tar.gz
gdb-bca1c3ae452b3f573f01a9e5b060c3cdd1fbe076.tar.bz2
* timer.cc: Only #include <sys/times.h> if HAVE_TIMES is defined.
Diffstat (limited to 'gold/timer.cc')
-rw-r--r--gold/timer.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/timer.cc b/gold/timer.cc
index ec51bc9..29eaa55 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 <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"