--- gcc-3.4.6.old/gcc/config/host-linux.c +++ gcc-3.4.6/gcc/config/host-linux.c @@ -26,6 +26,9 @@ #include "hosthooks.h" #include "hosthooks-def.h" +#ifndef SSIZE_MAX +#define SSIZE_MAX INTTYPE_MAXIMUM(ssize_t) +#endif /* Linux has a feature called exec-shield-randomize that perturbs the address of non-fixed mapped segments by a (relatively) small amount. --- gcc-3.4.6.old/gcc/system.h +++ gcc-3.4.6/gcc/system.h @@ -336,7 +336,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-3.4.6.old/gcc/timevar.c +++ gcc-3.4.6/gcc/timevar.c @@ -33,6 +33,7 @@ #include "rtl.h" #include "toplev.h" +#ifdef NOTDEF #ifndef HAVE_CLOCK_T typedef int clock_t; #endif @@ -46,6 +47,9 @@ clock_t tms_cstime; }; #endif +#else +#include +#endif #ifndef RUSAGE_SELF # define RUSAGE_SELF 0