about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mips
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-01-02 18:31:41 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-01-02 18:31:41 +0000
commit253a59ccb571dc67b6dc303192d8d99378a35c75 (patch)
tree18d6f47901988675a889825ad15ce88fc545af51 /sysdeps/unix/sysv/linux/mips
parent27dae0113e527aa2a94350d1f624c6e7c81139ce (diff)
downloadglibc-253a59ccb571dc67b6dc303192d8d99378a35c75.tar.gz
glibc-253a59ccb571dc67b6dc303192d8d99378a35c75.tar.xz
glibc-253a59ccb571dc67b6dc303192d8d99378a35c75.zip
Fix MIPS TIOCSER_TEMT namespace (bug 17782).
sysdeps/unix/sysv/linux/mips/bits/termios.h defines TIOCSER_TEMT
unconditionally, but it's in the user's namespace.  This patch
conditions it on __USE_MISC, as on powerpc.  I've filed bug 17783 for
the residual inconsistency in conditions on this macro (sparc defines
it for __USE_GNU only).

	[BZ #17782]
	* sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
	Condition macro definition on [__USE_MISC].
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips')
-rw-r--r--sysdeps/unix/sysv/linux/mips/bits/termios.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/bits/termios.h b/sysdeps/unix/sysv/linux/mips/bits/termios.h
index 8f640e1c27..666d6a32c4 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/termios.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/termios.h
@@ -197,8 +197,10 @@ struct termios
 # define EXTPROC 0200000
 #endif
 
+#ifdef __USE_MISC
 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
-#define TIOCSER_TEMT    0x01	/* Transmitter physically empty */
+# define TIOCSER_TEMT    0x01	/* Transmitter physically empty */
+#endif
 
 /* tcflow() and TCXONC use these */
 #define	TCOOFF		0	/* Suspend output.  */