aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/ada-fixes.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-23 11:47:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-09-23 11:57:24 +0000
commit0dceb86c0b230eb083bc86711a57e9abd1b459f3 (patch)
tree6bb1372ca2fe1912861cea0b54bcc37952c3ab96 /main/gcc/ada-fixes.patch
parentd61fa697f573aeec58efbebee57c4654ffc4750a (diff)
downloadaports-0dceb86c0b230eb083bc86711a57e9abd1b459f3.tar.bz2
aports-0dceb86c0b230eb083bc86711a57e9abd1b459f3.tar.xz
main/gcc: implement crosscompiler creation and crossbuilding, musl fixes
Diffstat (limited to 'main/gcc/ada-fixes.patch')
-rw-r--r--main/gcc/ada-fixes.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/main/gcc/ada-fixes.patch b/main/gcc/ada-fixes.patch
new file mode 100644
index 0000000000..db9a3e3ebe
--- /dev/null
+++ b/main/gcc/ada-fixes.patch
@@ -0,0 +1,47 @@
+--- gcc-4.8.1/gcc/ada/terminals.c.orig
++++ gcc-4.8.1/gcc/ada/terminals.c
+@@ -984,13 +984,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 (FREEBSD) && \
+- ! defined (__APPLE__) && ! defined(__rtems__)
+-# include <termio.h>
+-#endif
+-
+ #include <sys/ioctl.h>
+ #include <termios.h>
+ #include <fcntl.h>
+@@ -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 <time.h>
+ #else
+ #include <sys/time.h>
++#include <time.h>
+ #endif
+
+ #ifdef __MINGW32__