about summary refs log tree commit diff
path: root/bits
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2008-05-21 19:37:10 +0000
committerRoland McGrath <roland@gnu.org>2008-05-21 19:37:10 +0000
commit844625b5cd92f0e6b8ba618c8685287c7e789cd1 (patch)
tree0c6ed8b19125941096cc08c8277c0c82ce9ef5bc /bits
parente564d29d8e1cc50881c42fc4afb4a101c9fdc118 (diff)
downloadglibc-844625b5cd92f0e6b8ba618c8685287c7e789cd1.tar.gz
glibc-844625b5cd92f0e6b8ba618c8685287c7e789cd1.tar.xz
glibc-844625b5cd92f0e6b8ba618c8685287c7e789cd1.zip
2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
	* bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
Diffstat (limited to 'bits')
-rw-r--r--bits/termios.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bits/termios.h b/bits/termios.h
index 4dc0fab911..293d0a6061 100644
--- a/bits/termios.h
+++ b/bits/termios.h
@@ -135,8 +135,10 @@ struct termios
   /* Output modes.  */
   tcflag_t c_oflag;
 #define	OPOST	(1 << 0)	/* Perform output processing.  */
-#ifdef	__USE_BSD
+#if defined __USE_BSD || defined __USE_XOPEN
 # define ONLCR	(1 << 1)	/* Map NL to CR-NL on output.  */
+#endif
+#ifdef	__USE_BSD
 # define OXTABS	TAB3		/* Expand tabs to spaces.  */
 # define ONOEOT	(1 << 3)	/* Discard EOT (^D) on output.  */
 #endif