diff options
author | Elliott Hughes <enh@google.com> | 2023-02-23 17:38:37 +0000 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2023-02-23 17:38:37 +0000 |
commit | f4ace9d6347a5e4fc1a6bd7513502b4a4121733c (patch) | |
tree | 5893eb255ecfb6a3e012952858e201812288b451 /libc/include/unistd.h | |
parent | d3ebc2f7c49a9893b114124d4a6b315f3a328764 (diff) | |
download | bionic-f4ace9d6347a5e4fc1a6bd7513502b4a4121733c.tar.gz |
libc/include: remove easy __ANDROID_API__ tautologies.
The next NDK to take these headers only supports API 21 and later, so
clean up some of the trivial cruft.
This doesn't include the remaining "legacy inlines", since they're a bit
more complicated. I'll remove those in later changes.
Test: treehugger
Change-Id: I94c32f6393dd3ae831165917303ea591222baa0d
Diffstat (limited to 'libc/include/unistd.h')
-rw-r--r-- | libc/include/unistd.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libc/include/unistd.h b/libc/include/unistd.h index 566caaa63..7ad94e141 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -303,13 +303,7 @@ int ttyname_r(int __fd, char* _Nonnull __buf, size_t __buf_size); int acct(const char* _Nullable __path); -#if __ANDROID_API__ >= 21 int getpagesize(void) __INTRODUCED_IN(21); -#else -static __inline__ int getpagesize(void) { - return sysconf(_SC_PAGESIZE); -} -#endif long syscall(long __number, ...); |