This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[GOLD][PATCH] Fix sys/times.h include in timer.cc


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"
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]