This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[GOLD][PATCH] Fix sys/times.h include in timer.cc
- From: Viktor Kutuzov <vkutuzov at accesssoftek dot com>
- To: Ian Lance Taylor <iant at google dot com>, binutils <binutils at sourceware dot org>
- Date: Thu, 20 May 2010 13:03:55 -0700
- Subject: [GOLD][PATCH] Fix sys/times.h include in timer.cc
- Reply-to: vkutuzov at accesssoftek dot com
Hello Ian,
please find attached a patch that fixes an including of sys/times.h when
if HAVE_TIMES is not defined. It prevents some compilation errors on the
system, which don't have this file.
--
-Viktor
Index: timer.cc
===================================================================
RCS file: /cvs/src/src/gold/timer.cc,v
retrieving revision 1.1
diff -u -r1.1 timer.cc
--- timer.cc 17 Dec 2009 16:02:03 -0000 1.1
+++ timer.cc 19 May 2010 23:13:39 -0000
@@ -22,7 +22,9 @@
#include "gold.h"
+#ifdef HAVE_TIMES
#include <sys/times.h>
+#endif
#include "libiberty.h"