Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -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, &current);
+#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(&current);
+#endif
tcsetattr(0, TCSANOW, &current);
fd_set inp;
struct timeval tv = {0, 0};