commit | f39b0856fef005c734c40959f07f711b94c0c4f6 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Jan 09 16:28:22 2020 -0800 |
committer | Elliott Hughes <enh@google.com> | Thu Jan 09 16:42:15 2020 -0800 |
tree | 553d6335e5816e0a9f680a7165c8ad972de85564 | |
parent | 3779d6da40fc90b989b343c1b0d5b22611226b43 [diff] [blame] |
Consistent <termios.h> behavior on all API levels. Bug: https://issuetracker.google.com/146886722 (where the difference was noticed) Bug: http://b/69816452 (most recent fixes) Test: treehugger Change-Id: I487399c44f63ba276ccde74bf0c4a01e4cd4f4bf
diff --git a/libc/include/android/legacy_termios_inlines.h b/libc/include/android/legacy_termios_inlines.h index 9ea588d..6222786 100644 --- a/libc/include/android/legacy_termios_inlines.h +++ b/libc/include/android/legacy_termios_inlines.h
@@ -30,7 +30,10 @@ #include <sys/cdefs.h> -#if __ANDROID_API__ < 21 +// The last bugfixes to <bits/termios_inlines.h> were +// 5da96467a99254c963aef44e75167661d3e02278, so even those these functions were +// in API level 21, ensure that everyone's using the latest versions. +#if __ANDROID_API__ < 28 #include <linux/termios.h> #include <sys/ioctl.h>