summaryrefslogtreecommitdiffstats
path: root/main/gcc/ada-fixes.patch
diff options
context:
space:
mode:
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 db9a3e3eb..c302f5be5 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;