--- gcc-8.2.1.old/gcc/system.h +++ gcc-8.2.1/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-8.2.1.old/gcc/timevar.c +++ gcc-8.2.1/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-8.2.1.old/libiberty/gettimeofday.c +++ gcc-8.2.1/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-8.2.1.old/libiberty/strsignal.c +++ gcc-8.2.1/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) {