aboutsummaryrefslogtreecommitdiff
path: root/libc/include/unistd.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-09-08 16:11:23 -0700
committerDan Albert <danalbert@google.com>2016-09-08 16:13:27 -0700
commit299040420652498575ddfc7516a16ac5f835c132 (patch)
tree84b2d66ec71a34ff44d0f6e848c7c379424a9d50 /libc/include/unistd.h
parente5dd632e43dd81f293afdb93a6556d40d7007765 (diff)
downloadbionic-299040420652498575ddfc7516a16ac5f835c132.tar.gz
Correct more fortify availability guards.
Test: make checkbuild Bug: http://b/30465923 Change-Id: I90ac222483ecd39f1e7cc358babfb64e305cffcb
Diffstat (limited to 'libc/include/unistd.h')
-rw-r--r--libc/include/unistd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/include/unistd.h b/libc/include/unistd.h
index ac7d4c2bf..ab8108a59 100644
--- a/libc/include/unistd.h
+++ b/libc/include/unistd.h
@@ -489,6 +489,7 @@ ssize_t write(int fd, const void* buf, size_t count) {
}
#endif /* __ANDROID_API__ >= 24 */
+#if __ANDROID_API__ >= 23
__BIONIC_FORTIFY_INLINE
ssize_t readlink(const char* path, char* buf, size_t size) {
size_t bos = __bos(buf);
@@ -538,6 +539,7 @@ ssize_t readlinkat(int dirfd, const char* path, char* buf, size_t size) {
return __readlinkat_chk(dirfd, path, buf, size, bos);
}
+#endif /* __ANDROID_API__ >= 23 */
#endif /* defined(__BIONIC_FORTIFY) */