aboutsummaryrefslogtreecommitdiff
path: root/gold/timer.cc
diff options
context:
space:
mode:
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"