From df5822519271d26c674d01568aed49bbdbaf56cb Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 14 Feb 2023 12:44:49 +0000 Subject: [PATCH] Revert "add epoll_create fallback which is missing in API<21" This reverts commit e29b6f9974bcad9a1e97493979f261cdb4cf4ea3. Since update to `mio` 0.8.5, it does not require `epoll_create1()` function to be present on Android anymore. --- jni/dc_wrapper.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/jni/dc_wrapper.c b/jni/dc_wrapper.c index f8c04ed55..1ef241e7e 100644 --- a/jni/dc_wrapper.c +++ b/jni/dc_wrapper.c @@ -7,20 +7,6 @@ #include "deltachat-core-rust/deltachat-ffi/deltachat.h" -#if __ANDROID_API__ < 21 -#include -#include -int epoll_create1(int flags) { - int fd = epoll_create(1000); - if (flags & O_CLOEXEC) { /* EPOLL_CLOEXEC == O_CLOEXEC */ - int f = fcntl(fd, F_GETFD); - fcntl(fd, F_SETFD, f | FD_CLOEXEC); - } - return fd; -} -#endif - - static dc_msg_t* get_dc_msg(JNIEnv *env, jobject obj);