diff options
Diffstat (limited to 'binutils/patches/210-gold-time_cc-unistd_h_for_sysconf.patch')
-rw-r--r-- | binutils/patches/210-gold-time_cc-unistd_h_for_sysconf.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils/patches/210-gold-time_cc-unistd_h_for_sysconf.patch b/binutils/patches/210-gold-time_cc-unistd_h_for_sysconf.patch new file mode 100644 index 0000000..96fede3 --- /dev/null +++ b/binutils/patches/210-gold-time_cc-unistd_h_for_sysconf.patch @@ -0,0 +1,14 @@ +Index: binutils/gold/timer.cc +=================================================================== +--- binutils.orig/gold/timer.cc ++++ binutils/gold/timer.cc +@@ -50,6 +50,9 @@ Timer::start() + } + + #if HAVE_SYSCONF && defined _SC_CLK_TCK ++# if HAVE_UNISTD_H ++# include <unistd.h> ++# endif + # define TICKS_PER_SECOND sysconf (_SC_CLK_TCK) /* POSIX 1003.1-1996 */ + #else + # ifdef CLK_TCK |