aboutsummaryrefslogtreecommitdiffstats
path: root/community/xterm/posix-ptys.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-09-11 12:44:18 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-09-11 12:45:22 +0200
commit3aa532e77875fa1db18c7fcb938b16647031bcc1 (patch)
tree5fbd631c51edb891017f54c093c0c64f3b867bf6 /community/xterm/posix-ptys.patch
parentcab490bb3e5e48778dd9be25c7c206af678220fc (diff)
downloadaports-3aa532e77875fa1db18c7fcb938b16647031bcc1.tar.bz2
aports-3aa532e77875fa1db18c7fcb938b16647031bcc1.tar.xz
community/xterm: move from testing
xterm is a dependency of firetools
Diffstat (limited to 'community/xterm/posix-ptys.patch')
-rw-r--r--community/xterm/posix-ptys.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/community/xterm/posix-ptys.patch b/community/xterm/posix-ptys.patch
new file mode 100644
index 0000000000..596699fde2
--- /dev/null
+++ b/community/xterm/posix-ptys.patch
@@ -0,0 +1,21 @@
+diff -upr xterm-323.orig/main.c xterm-323/main.c
+--- xterm-323.orig/main.c 2016-03-09 15:30:51.191053881 +0100
++++ xterm-323/main.c 2016-03-09 15:31:17.961635229 +0100
+@@ -2654,7 +2654,7 @@ get_pty(int *pty, char *from GCC_UNUSED)
+ close(opened_tty);
+ opened_tty = -1;
+ }
+-#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME) && defined(HAVE_GRANTPT_PTY_ISATTY)
++#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME)
+ if ((*pty = posix_openpt(O_RDWR)) >= 0) {
+ char *name = ptsname(*pty);
+ if (name != 0) {
+@@ -3735,7 +3735,7 @@ spawnXTerm(XtermWidget xw)
+ /*
+ * now in child process
+ */
+-#if defined(_POSIX_SOURCE) || defined(SVR4) || defined(__convex__) || defined(__SCO__) || defined(__QNX__)
++#if defined(_POSIX_VERSION) || defined(SVR4) || defined(__convex__) || defined(__SCO__) || defined(__QNX__)
+ int pgrp = setsid(); /* variable may not be used... */
+ #else
+ int pgrp = getpid();