--- gcc-5.5.0.old/gcc/system.h +++ gcc-5.5.0/gcc/system.h @@ -537,7 +537,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-5.5.0.old/gcc/timevar.c +++ gcc-5.5.0/gcc/timevar.c @@ -24,6 +24,7 @@ #include "timevar.h" #include "options.h" +#ifdef NOTDEF #ifndef HAVE_CLOCK_T typedef int clock_t; #endif @@ -37,6 +38,9 @@ clock_t tms_cstime; }; #endif +#else +#include +#endif #ifndef RUSAGE_SELF # define RUSAGE_SELF 0 --- gcc-5.5.0.old/libiberty/gettimeofday.c +++ gcc-5.5.0/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-5.5.0.old/libiberty/strsignal.c +++ gcc-5.5.0/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) {