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 committed: #include <unistd.h> in timer.cc


The gold file timer.cc can call sysconf, which on some systems requires
#includ'ing <unistd.h>.  This patch does so.  Committed to mainline and
2.22 branch.

Ian


2012-04-06  Ian Lance Taylor  <iant@google.com>

	* timer.cc: #include <unistd.h>.


Index: timer.cc
===================================================================
RCS file: /cvs/src/src/gold/timer.cc,v
retrieving revision 1.5
diff -u -r1.5 timer.cc
--- timer.cc	18 Oct 2011 00:06:10 -0000	1.5
+++ timer.cc	6 Apr 2012 17:17:32 -0000
@@ -22,6 +22,8 @@
 
 #include "gold.h"
 
+#include <unistd.h>
+
 #ifdef HAVE_TIMES
 #include <sys/times.h>
 #endif

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