diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-07-02 18:51:15 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-10-21 18:34:01 -0500 |
commit | 57b3454125ff268fb900c0d60b267535857bcd93 (patch) | |
tree | fb977ce1b0bdb0b6cbd6454809a86d1705277c8e /legacy/gcc6/ada-fixes.patch | |
parent | 04142312762064baaf4765e13b479d9e03cfad47 (diff) | |
download | packages-57b3454125ff268fb900c0d60b267535857bcd93.tar.gz packages-57b3454125ff268fb900c0d60b267535857bcd93.tar.bz2 packages-57b3454125ff268fb900c0d60b267535857bcd93.tar.xz packages-57b3454125ff268fb900c0d60b267535857bcd93.zip |
legacy/gcc6: add buildable patches
Diffstat (limited to 'legacy/gcc6/ada-fixes.patch')
-rw-r--r-- | legacy/gcc6/ada-fixes.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/legacy/gcc6/ada-fixes.patch b/legacy/gcc6/ada-fixes.patch new file mode 100644 index 000000000..ba4ea42b4 --- /dev/null +++ b/legacy/gcc6/ada-fixes.patch @@ -0,0 +1,35 @@ +--- gcc-6.1.0.orig/gcc/ada/cal.c ++++ gcc-6.1.0/gcc/ada/cal.c +@@ -49,6 +49,7 @@ + #include <time.h> + #else + #include <sys/time.h> ++#include <time.h> + #endif + + #ifdef __MINGW32__ +--- gcc-6.1.0.orig/gcc/ada/terminals.c ++++ gcc-6.1.0/gcc/ada/terminals.c +@@ -1068,13 +1068,6 @@ + #include <stdio.h> + #include <stdlib.h> + +-/* On some system termio is either absent or including it will disable termios +- (HP-UX) */ +-#if !defined (__hpux__) && !defined (BSD) && !defined (__APPLE__) \ +- && !defined (__rtems__) +-# include <termio.h> +-#endif +- + #include <sys/ioctl.h> + #include <termios.h> + #include <fcntl.h> +@@ -1169,7 +1162,7 @@ + char *slave_name = NULL; + + #ifdef USE_GETPT +- master_fd = getpt (); ++ master_fd = posix_openpt (O_RDWR); + #elif defined (USE_OPENPTY) + status = openpty (&master_fd, &slave_fd, NULL, NULL, NULL); + #elif defined (USE_CLONE_DEVICE) |