This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: #include <unistd.h> in timer.cc
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Fri, 06 Apr 2012 10:24:01 -0700
- Subject: 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