From 98efb4f6d518765af5a9f9d86fffc33a94056fdb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Aug 2018 18:44:05 +0200 Subject: 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. --- src/system/EPollFD.cxx | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/system') diff --git a/src/system/EPollFD.cxx b/src/system/EPollFD.cxx index 39ddbca5e..d9200ed41 100644 --- a/src/system/EPollFD.cxx +++ b/src/system/EPollFD.cxx @@ -22,21 +22,6 @@ #include "EPollFD.hxx" #include "FatalError.hxx" -#if defined(__BIONIC__) && __ANDROID_API__ < 21 - -#include -#include - -#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)) { -- cgit v1.2.3