--- gcc-4.9.4.old/gcc/system.h +++ gcc-4.9.4/gcc/system.h @@ -503,7 +503,7 @@ #if !defined (HAVE_STRSIGNAL) \ || (defined (HAVE_DECL_STRSIGNAL) && !HAVE_DECL_STRSIGNAL) # ifndef strsignal -extern const char *strsignal (int); +extern char *strsignal (int); # endif #endif --- gcc-4.9.4.old/gcc/timevar.c +++ gcc-4.9.4/gcc/timevar.c @@ -22,6 +22,7 @@ #include "system.h" #include "timevar.h" +#ifdef NOTDEF #ifndef HAVE_CLOCK_T typedef int clock_t; #endif @@ -35,6 +36,9 @@ clock_t tms_cstime; }; #endif +#else +#include +#endif #ifndef RUSAGE_SELF # define RUSAGE_SELF 0 --- gcc-4.9.4.old/libiberty/gettimeofday.c +++ gcc-4.9.4/libiberty/gettimeofday.c @@ -18,6 +18,7 @@ */ +#ifdef NOTDEF int gettimeofday (struct timeval *tp, void *tz) { @@ -28,3 +29,4 @@ return -1; return 0; } +#endif --- gcc-4.9.4.old/libiberty/strsignal.c +++ gcc-4.9.4/libiberty/strsignal.c @@ -551,7 +551,7 @@ #ifndef HAVE_PSIGNAL void -psignal (int signo, char *message) +psignal (int signo, const char *message) { if (signal_names == NULL) {