aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/ada-fixes.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-24 15:37:34 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-24 16:58:42 +0000
commitc774c78064e6cd0bbe11c9f5261585842e7499fa (patch)
treec884ea4702b24a5cdd20d4d3118227e87405e506 /main/gcc/ada-fixes.patch
parent89da1e507c14d43444ff384d50c9a9d43ce8847d (diff)
downloadaports-c774c78064e6cd0bbe11c9f5261585842e7499fa.tar.bz2
aports-c774c78064e6cd0bbe11c9f5261585842e7499fa.tar.xz
main/gcc: unbreak ada on uclibc, crossbuild fixes, and musl updates
Diffstat (limited to 'main/gcc/ada-fixes.patch')
-rw-r--r--main/gcc/ada-fixes.patch19
1 files changed, 8 insertions, 11 deletions
diff --git a/main/gcc/ada-fixes.patch b/main/gcc/ada-fixes.patch
index db9a3e3ebe..c302f5be58 100644
--- a/main/gcc/ada-fixes.patch
+++ b/main/gcc/ada-fixes.patch
@@ -14,18 +14,15 @@
#include <sys/ioctl.h>
#include <termios.h>
#include <fcntl.h>
-@@ -1032,10 +1025,8 @@
- */
+@@ -1078,7 +1078,7 @@
+ char *slave_name = NULL;
- /* 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)
+ #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)
@@ -1179,7 +1170,7 @@
int status;