--- gcc-4.8.1/gcc/ada/terminals.c.orig +++ gcc-4.8.1/gcc/ada/terminals.c @@ -984,13 +984,6 @@ #include #include -/* On some system termio is either absent or including it will disable termios - (HP-UX) */ -#if ! defined (__hpux__) && ! defined (FREEBSD) && \ - ! defined (__APPLE__) && ! defined(__rtems__) -# include -#endif - #include #include #include @@ -1032,10 +1025,8 @@ */ /* Configurable part */ -#if defined (__APPLE__) || defined (FREEBSD) +#if defined (__APPLE__) || defined (FREEBSD) || defined(linux) #define USE_OPENPTY -#elif defined (linux) -#define USE_GETPT #elif defined (sun) #define USE_CLONE_DEVICE "/dev/ptmx" #elif defined (_AIX) @@ -1179,7 +1170,7 @@ int status; /* ensure that s is filled with 0 */ - bzero (&s, sizeof (&s)); + bzero (&s, sizeof (s)); /* Get the current terminal settings */ status = tcgetattr (fd, &s); --- gcc-4.8.1/gcc/ada/cal.c.orig +++ gcc-4.8.1/gcc/ada/cal.c @@ -65,6 +65,7 @@ #include #else #include +#include #endif #ifdef __MINGW32__