aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/termios.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/include/termios.h')
-rw-r--r--libc/include/termios.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/include/termios.h b/libc/include/termios.h
index b9685ca7a..683fde22e 100644
--- a/libc/include/termios.h
+++ b/libc/include/termios.h
@@ -35,6 +35,7 @@
__BEGIN_DECLS
+#if __ANDROID_API__ >= 21
speed_t cfgetispeed(const struct termios*);
speed_t cfgetospeed(const struct termios*);
void cfmakeraw(struct termios*);
@@ -48,6 +49,9 @@ int tcgetattr(int, struct termios*);
pid_t tcgetsid(int);
int tcsendbreak(int, int);
int tcsetattr(int, int, const struct termios*);
+#else
+#include <android/legacy_termios_inlines.h>
+#endif
__END_DECLS