pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ucommon/patches Forgot to add this... Fixes unpo...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d18486758c03
branches: trunk
changeset: 629695:d18486758c03
user: rodent <rodent%pkgsrc.org@localhost>
date: Sun Jan 26 04:00:19 2014 +0000
description:
Forgot to add this... Fixes unportable cfmakeraw() for SunOS.
diffstat:
devel/ucommon/patches/patch-utils_keywait.cpp | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diffs (26 lines):
diff -r 4953a782e692 -r d18486758c03 devel/ucommon/patches/patch-utils_keywait.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ucommon/patches/patch-utils_keywait.cpp Sun Jan 26 04:00:19 2014 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-utils_keywait.cpp,v 1.1 2014/01/26 04:00:19 rodent Exp $
+
+Fix unportable cfmakeraw() for SunOS.
+
+--- utils/keywait.cpp.orig 2014-01-04 17:31:43.000000000 +0000
++++ utils/keywait.cpp
+@@ -122,7 +122,15 @@ PROGRAM_MAIN(argc, argv)
+ shell::exiting(&cleanup);
+
+ tcgetattr(0, ¤t);
++#if defined(__sun)
++ current.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
++ current.c_oflag &= ~OPOST;
++ current.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
++ current.c_cflag &= ~(CSIZE|PARENB);
++ current.c_cflag |= CS8;
++#else
+ cfmakeraw(¤t);
++#endif
+ tcsetattr(0, TCSANOW, ¤t);
+ fd_set inp;
+ struct timeval tv = {0, 0};
Home |
Main Index |
Thread Index |
Old Index