aboutsummaryrefslogtreecommitdiff
path: root/texinfo/info
diff options
context:
space:
mode:
authorKarl Berry <karl@cs.umb.edu>1997-08-31 01:48:33 +0000
committerJim Wilson <wilson@cygnus.com>1997-08-31 01:48:33 +0000
commitff97a1aee93fa0c3b74098b21e063211e5eacb65 (patch)
treee01933f5d99bce3608b19942ce5c46d7cb1da564 /texinfo/info
parente07c464ac8a9fcb75b9c9cab9e7c17e9f9195cd6 (diff)
Fix Freedbsd build problem with patch from more recent texinfo sources.
* info/terminal.c (terminal_prep_terminal): Only use OCRNL and ONLCR if they are defined. Reported by many people. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@15003 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'texinfo/info')
-rw-r--r--texinfo/info/terminal.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/texinfo/info/terminal.c b/texinfo/info/terminal.c
index 9c1017696c6..7275d00cb5b 100644
--- a/texinfo/info/terminal.c
+++ b/texinfo/info/terminal.c
@@ -637,7 +637,14 @@ terminal_prep_terminal ()
#if defined (HAVE_TERMIOS_H) || defined (HAVE_TERMIO_H)
ttybuff.c_iflag &= (~ISTRIP & ~INLCR & ~IGNCR & ~ICRNL & ~IXON);
- ttybuff.c_oflag &= (~ONLCR & ~OCRNL);
+/* These output flags are not part of POSIX, so only use them if they
+ are defined. */
+#ifdef ONLCR
+ ttybuff.c_oflag &= ~ONLCR ;
+#endif
+#ifdef OCRNL
+ ttybuff.c_oflag &= ~OCRNL;
+#endif
ttybuff.c_lflag &= (~ICANON & ~ECHO);
ttybuff.c_cc[VMIN] = 1;