From: H. Peter Anvin Date: Sun, 13 Jul 2025 05:19:42 +0000 (-0700) Subject: termios: move the baud_t interface from __USE_MISC to __USE_GNU X-Git-Tag: glibc-2.42~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0332959dd27e8be7e488862211327eab3531e520;p=thirdparty%2Fglibc.git termios: move the baud_t interface from __USE_MISC to __USE_GNU __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 Signed-off-by: H. Peter Anvin (Intel) Reviewed-by: Collin Funk --- diff --git a/termios/termios.h b/termios/termios.h index 788c982405..3347c880a5 100644 --- a/termios/termios.h +++ b/termios/termios.h @@ -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;