aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2025-07-12 22:19:42 -0700
committerAndreas K. Hüttel <dilfridge@gentoo.org>2025-07-20 17:17:38 +0200
commit0332959dd27e8be7e488862211327eab3531e520 (patch)
tree676228a4ef0b135588ca03e8a8b2e63abd4ae90e
parent5dd2a19ad5218261cee064477342e81d67367e78 (diff)
downloadglibc-0332959dd27e8be7e488862211327eab3531e520.zip
glibc-0332959dd27e8be7e488862211327eab3531e520.tar.gz
glibc-0332959dd27e8be7e488862211327eab3531e520.tar.bz2
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>
-rw-r--r--termios/termios.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/termios/termios.h b/termios/termios.h
index 788c982..3347c88 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;