mirror of https://github.com/microsoft/vcpkg.git
14 lines
636 B
Diff
14 lines
636 B
Diff
diff --git a/env/io_posix.h b/env/io_posix.h
|
|
index bca0c5836..395797d7e 100644
|
|
--- a/env/io_posix.h
|
|
+++ b/env/io_posix.h
|
|
@@ -40,7 +40,7 @@
|
|
// For non linux platform, the following macros are used only as place
|
|
// holder.
|
|
#if !(defined OS_LINUX) && !(defined OS_FREEBSD) && !(defined CYGWIN) && \
|
|
- !(defined OS_AIX) && !(defined OS_ANDROID)
|
|
+ !(defined OS_AIX) && !(defined OS_ANDROID && __ANDROID_API__ >= 23)
|
|
#define POSIX_FADV_NORMAL 0 /* [MC1] no further special treatment */
|
|
#define POSIX_FADV_RANDOM 1 /* [MC1] expect random page refs */
|
|
#define POSIX_FADV_SEQUENTIAL 2 /* [MC1] expect sequential page refs */
|