diff options
author | Max Kellermann <max@musicpd.org> | 2018-02-11 13:22:43 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-02-11 13:22:43 +0100 |
commit | 65bbb0e0aa0f613a9da683900838d2912f2454ba (patch) | |
tree | 3527ff6fdec933826a9278a611166d4b69f14827 /src/input/plugins | |
parent | 5147654f6c6e452132be6bd4b8d525d1c1856878 (diff) | |
parent | c2940a8385201b6501a43aefa6f9bee983950c01 (diff) |
Merge tag 'v0.20.17'
release v0.20.17
Diffstat (limited to 'src/input/plugins')
-rw-r--r-- | src/input/plugins/FileInputPlugin.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input/plugins/FileInputPlugin.cxx b/src/input/plugins/FileInputPlugin.cxx index 9e0398916..cc8e62413 100644 --- a/src/input/plugins/FileInputPlugin.cxx +++ b/src/input/plugins/FileInputPlugin.cxx @@ -65,10 +65,13 @@ OpenFileInputStream(Path path, throw FormatRuntimeError("Not a regular file: %s", path.c_str()); +#if !defined(__BIONIC__) || __ANDROID_API__ >= 21 + /* posix_fadvise() requires Android API 21 */ #ifdef POSIX_FADV_SEQUENTIAL posix_fadvise(reader.GetFD().Get(), (off_t)0, info.GetSize(), POSIX_FADV_SEQUENTIAL); #endif +#endif return std::make_unique<FileInputStream>(path.ToUTF8().c_str(), std::move(reader), info.GetSize(), |