Commit 4f122a21 by Karl Berry Committed by Jim Wilson

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.

From-SVN: r15003
parent 3b7e5ef4
...@@ -16,6 +16,11 @@ Mon May 26 12:44:43 1997 Ian Lance Taylor <ian@cygnus.com> ...@@ -16,6 +16,11 @@ Mon May 26 12:44:43 1997 Ian Lance Taylor <ian@cygnus.com>
* texinfo.tex: Update to newest FSF version (2.201). * texinfo.tex: Update to newest FSF version (2.201).
Fri Mar 14 15:05:17 1997 Karl Berry <karl@cs.umb.edu>
* info/terminal.c (terminal_prep_terminal): Only use OCRNL and
ONLCR if they are defined. Reported by many people.
Wed Feb 12 11:15:16 1997 Michael Meissner <meissner@cygnus.com> Wed Feb 12 11:15:16 1997 Michael Meissner <meissner@cygnus.com>
* util/texindex.c (main): Make main an int function, not void. * util/texindex.c (main): Make main an int function, not void.
......
...@@ -637,7 +637,14 @@ terminal_prep_terminal () ...@@ -637,7 +637,14 @@ terminal_prep_terminal ()
#if defined (HAVE_TERMIOS_H) || defined (HAVE_TERMIO_H) #if defined (HAVE_TERMIOS_H) || defined (HAVE_TERMIO_H)
ttybuff.c_iflag &= (~ISTRIP & ~INLCR & ~IGNCR & ~ICRNL & ~IXON); 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_lflag &= (~ICANON & ~ECHO);
ttybuff.c_cc[VMIN] = 1; ttybuff.c_cc[VMIN] = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment