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 <collin.funk1@gmail.com>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
This commit is contained in:
H. Peter Anvin 2025-07-12 22:19:42 -07:00 committed by Andreas K. Hüttel
parent 5dd2a19ad5
commit 0332959dd2
No known key found for this signature in database
GPG Key ID: DC2B16215ED5412A
1 changed files with 2 additions and 0 deletions

View 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;