]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
termios: move the baud_t interface from __USE_MISC to __USE_GNU
authorH. Peter Anvin <hpa@zytor.com>
Sun, 13 Jul 2025 05:19:42 +0000 (22:19 -0700)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 20 Jul 2025 15:17:38 +0000 (17:17 +0200)
__USE_MISC refers to interfaces imported from BSD or System V, but the
baud_t interface is (at least for now) a GNU extension, so move it
from __USE_MISC to __USE_GNU.

Suggested-by: Collin Funk <collin.funk1@gmail.com>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
termios/termios.h

index 788c982405966f6da8769c87c8d968bd48f4f7ee..3347c880a57fb39d76a2c1294c4e4c5479485e29 100644 (file)
@@ -59,7 +59,9 @@ extern int cfsetispeed (struct termios *__termios_p, speed_t __speed) __THROW;
 #ifdef __USE_MISC
 /* Set both the input and output baud rates in *TERMIOS_OP to SPEED.  */
 extern int cfsetspeed (struct termios *__termios_p, speed_t __speed) __THROW;
+#endif
 
+#ifdef __USE_GNU
 /* Interfaces that are explicitly numeric representations of baud rates */
 typedef speed_t baud_t;