android: raise minSdkVersion to 21

The number of MPD installs on Android < 5.0 is negligible, and that
API version introduces lots of useful features for MPD.
This commit is contained in:
Max Kellermann
2018-08-17 18:44:05 +02:00
parent 36edb4886c
commit 98efb4f6d5
6 changed files with 4 additions and 22 deletions

View File

@@ -22,21 +22,6 @@
#include "EPollFD.hxx"
#include "FatalError.hxx"
#if defined(__BIONIC__) && __ANDROID_API__ < 21
#include <sys/syscall.h>
#include <fcntl.h>
#define EPOLL_CLOEXEC O_CLOEXEC
static inline int
epoll_create1(int flags)
{
return syscall(__NR_epoll_create1, flags);
}
#endif
EPollFD::EPollFD()
:fd(::epoll_create1(EPOLL_CLOEXEC))
{