summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjperkin <jperkin>2017-04-13 10:17:25 +0000
committerjperkin <jperkin>2017-04-13 10:17:25 +0000
commit60cb3e414475e22609ad1ac2f98d5255e29695a2 (patch)
treef95e9cac0192eab6bb23b758ba6bab5e17e75f2e /x11
parente676ed4d247589a252a45eebac1aa7100d4e1c08 (diff)
downloadpkgsrc-60cb3e414475e22609ad1ac2f98d5255e29695a2.tar.gz
Add a bunch more compatibility defines. Fixes SunOS.
Diffstat (limited to 'x11')
-rw-r--r--x11/mcookie/distinfo4
-rw-r--r--x11/mcookie/patches/patch-include_ttyutils.h39
2 files changed, 38 insertions, 5 deletions
diff --git a/x11/mcookie/distinfo b/x11/mcookie/distinfo
index e53be5b09e9..3477ac952f0 100644
--- a/x11/mcookie/distinfo
+++ b/x11/mcookie/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2017/02/27 10:20:01 wiz Exp $
+$NetBSD: distinfo,v 1.7 2017/04/13 10:17:25 jperkin Exp $
SHA1 (util-linux-2.29.2.tar.xz) = b488f185e74187a63b55baef9d3f48d5b1780118
RMD160 (util-linux-2.29.2.tar.xz) = 70bfcbef7210c3a28b067fc064b5619061339fe0
@@ -6,6 +6,6 @@ SHA512 (util-linux-2.29.2.tar.xz) = 0a87e6758531f74276f3de7607ef545f324b9b36b444
Size (util-linux-2.29.2.tar.xz) = 4277668 bytes
SHA1 (patch-configure) = 1e6e797b8a0c19f3a55c65a8a51a9fd08a35fead
SHA1 (patch-include_setproctitle.h) = deb06015ca459886f82e22eaf6596ff79799b02a
-SHA1 (patch-include_ttyutils.h) = 304b7e09b601685c35c6033a95622e50979586ea
+SHA1 (patch-include_ttyutils.h) = fa2b253d568e5aface99727c397d3c4c892b2c93
SHA1 (patch-lib_ismounted.c) = 11f5148020dba2a22e1fbe4882fe423dfb11ad73
SHA1 (patch-lib_setproctitle.c) = 2b6415d9fa484ba1969aa36610b695ba04d0a603
diff --git a/x11/mcookie/patches/patch-include_ttyutils.h b/x11/mcookie/patches/patch-include_ttyutils.h
index 70c36809748..56858b6695d 100644
--- a/x11/mcookie/patches/patch-include_ttyutils.h
+++ b/x11/mcookie/patches/patch-include_ttyutils.h
@@ -1,10 +1,29 @@
-$NetBSD: patch-include_ttyutils.h,v 1.1 2016/09/20 08:00:51 wiz Exp $
+$NetBSD: patch-include_ttyutils.h,v 1.2 2017/04/13 10:17:25 jperkin Exp $
Define values if missing.
---- include/ttyutils.h.orig 2016-01-06 10:50:36.000000000 +0000
+--- include/ttyutils.h.orig 2016-11-02 12:57:31.535167960 +0000
+++ include/ttyutils.h
-@@ -114,6 +114,13 @@ static inline void reset_virtual_console
+@@ -60,6 +60,18 @@ extern int get_terminal_name(const char
+ static inline void reset_virtual_console(struct termios *tp, int flags)
+ {
+ /* Use defaults of <sys/ttydefaults.h> for base settings */
++#ifndef TTYDEF_IFLAG
++#define TTYDEF_IFLAG (BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
++#endif
++#ifndef TTYDEF_OFLAG
++#define TTYDEF_OFLAG (OPOST | ONLCR /*| OXTABS*/)
++#endif
++#ifndef TTYDEF_LFLAG
++#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
++#endif
++#ifndef TTYDEF_CFLAG
++#define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
++#endif
+ tp->c_iflag |= TTYDEF_IFLAG;
+ tp->c_oflag |= TTYDEF_OFLAG;
+ tp->c_lflag |= TTYDEF_LFLAG;
+@@ -114,6 +126,13 @@ static inline void reset_virtual_console
# define FFDLY 0
#endif
@@ -18,3 +37,17 @@ Define values if missing.
tp->c_iflag |= (BRKINT | ICRNL | IMAXBEL);
tp->c_iflag &= ~(IGNBRK | INLCR | IGNCR | IXOFF | IUCLC | IXANY | ISTRIP);
tp->c_oflag |= (OPOST | ONLCR | NL0 | CR0 | TAB0 | BS0 | VT0 | FF0);
+@@ -158,7 +177,13 @@ static inline void reset_virtual_console
+ tp->c_cc[VSTOP] = CSTOP;
+ tp->c_cc[VSUSP] = CSUSP;
+ tp->c_cc[VEOL] = _POSIX_VDISABLE;
++#ifndef CREPRINT
++#define CREPRINT ('r' & 037)
++#endif
+ tp->c_cc[VREPRINT] = CREPRINT;
++#ifndef CDISCARD
++#define CDISCARD ('o' & 037)
++#endif
+ tp->c_cc[VDISCARD] = CDISCARD;
+ tp->c_cc[VWERASE] = CWERASE;
+ tp->c_cc[VLNEXT] = CLNEXT;