summaryrefslogtreecommitdiff
path: root/package/xterm/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-11-06 21:21:39 +0100
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-11-06 21:21:39 +0100
commitbcf8903a386aeca999575b9243f33c42b2d39fde (patch)
treee75316271fea9021c0cc0148a51470a731a04eac /package/xterm/patches
parente82d685f38adbc0e50cf47cd0e4893c2e6633d83 (diff)
parent55bbdd0c376d8e169e5b9363e8b34882f161f9e5 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/xterm/patches')
-rw-r--r--package/xterm/patches/patch-main_c41
-rw-r--r--package/xterm/patches/patch-ptyx_h11
-rw-r--r--package/xterm/patches/patch-xterm_h11
-rw-r--r--package/xterm/patches/patch-xterm_io_h11
4 files changed, 74 insertions, 0 deletions
diff --git a/package/xterm/patches/patch-main_c b/package/xterm/patches/patch-main_c
new file mode 100644
index 000000000..dbe55d4ed
--- /dev/null
+++ b/package/xterm/patches/patch-main_c
@@ -0,0 +1,41 @@
+--- xterm-297.orig/main.c 2013-05-28 00:11:11.000000000 +0200
++++ xterm-297/main.c 2013-10-31 12:24:52.000000000 +0100
+@@ -2583,7 +2583,7 @@ main(int argc, char *argv[]ENVP_ARG)
+ }
+ }
+
+-#if defined(__osf__) || (defined(__GLIBC__) && !defined(USE_USG_PTYS)) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
++#if defined(__osf__) || (defined(__linux__) && !defined(USE_USG_PTYS)) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+ #define USE_OPENPTY 1
+ static int opened_tty = -1;
+ #endif
+@@ -3134,7 +3134,7 @@ find_utmp(struct UTMP_STR *tofind)
+
+ #define close_fd(fd) close(fd), fd = -1
+
+-#if defined(TIOCNOTTY) && (!defined(__GLIBC__) || (__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 1)))
++#if defined(TIOCNOTTY) && defined(__linux__)
+ #define USE_NO_DEV_TTY 1
+ #else
+ #define USE_NO_DEV_TTY 0
+@@ -3378,7 +3378,8 @@ spawnXTerm(XtermWidget xw)
+ }
+ #endif /* __MVS__ */
+
+- close_fd(ttyfd);
++ // do not close it here
++ // close_fd(ttyfd);
+ }
+
+ if (get_pty(&screen->respond, XDisplayString(screen->display))) {
+@@ -3807,8 +3808,9 @@ spawnXTerm(XtermWidget xw)
+ eg. by lineedit in the shell, or emacs, etc. then tio
+ will have bad values. Let's just get termio from the
+ new tty and tailor it. */
+- if (ttyGetAttr(ttyfd, &tio) == -1)
++ if (ttyGetAttr(ttyfd, &tio) == -1) {
+ SysError(ERROR_TIOCGETP);
++ }
+ tio.c_lflag |= ECHOE;
+ #endif /* umips */
+ /* Now is also the time to change the modes of the
diff --git a/package/xterm/patches/patch-ptyx_h b/package/xterm/patches/patch-ptyx_h
new file mode 100644
index 000000000..cd2fa7cad
--- /dev/null
+++ b/package/xterm/patches/patch-ptyx_h
@@ -0,0 +1,11 @@
+--- xterm-297.orig/ptyx.h 2013-09-10 20:10:00.000000000 +0200
++++ xterm-297/ptyx.h 2013-10-30 10:30:07.000000000 +0100
+@@ -169,7 +169,7 @@
+ #define USE_PTY_DEVICE 1
+ #define USE_PTY_SEARCH 1
+
+-#if defined(__osf__) || (defined(linux) && defined(__GLIBC__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
++#if defined(__osf__) || defined(linux) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+ #undef USE_PTY_DEVICE
+ #undef USE_PTY_SEARCH
+ #define USE_PTS_DEVICE 1
diff --git a/package/xterm/patches/patch-xterm_h b/package/xterm/patches/patch-xterm_h
new file mode 100644
index 000000000..7a3418a11
--- /dev/null
+++ b/package/xterm/patches/patch-xterm_h
@@ -0,0 +1,11 @@
+--- xterm-297.orig/xterm.h 2013-09-10 12:55:04.000000000 +0200
++++ xterm-297/xterm.h 2013-10-30 17:19:53.000000000 +0100
+@@ -99,7 +99,7 @@
+ #define HAVE_PUTENV 1
+ #endif
+
+-#if defined(CSRG_BASED) || defined(__GNU__)
++#if defined(CSRG_BASED) || defined(__linux__)
+ #define USE_POSIX_TERMIOS 1
+ #endif
+
diff --git a/package/xterm/patches/patch-xterm_io_h b/package/xterm/patches/patch-xterm_io_h
new file mode 100644
index 000000000..3ca39b3f6
--- /dev/null
+++ b/package/xterm/patches/patch-xterm_io_h
@@ -0,0 +1,11 @@
+--- xterm-297.orig/xterm_io.h 2013-01-06 16:20:45.000000000 +0100
++++ xterm-297/xterm_io.h 2013-10-30 17:21:10.000000000 +0100
+@@ -66,7 +66,7 @@
+ #endif
+
+ #ifdef linux
+-#define USE_TERMIOS
++#define USE_POSIX_TERMIOS
+ #endif
+
+ #ifdef __SCO__