Revert "add epoll_create fallback which is missing in API<21"

This reverts commit e29b6f9974.

Since update to `mio` 0.8.5, it does not require `epoll_create1()`
function to be present on Android anymore.
This commit is contained in:
link2xt 2023-02-14 12:44:49 +00:00
parent 9d9932775a
commit df58225192

View file

@ -7,20 +7,6 @@
#include "deltachat-core-rust/deltachat-ffi/deltachat.h"
#if __ANDROID_API__ < 21
#include <sys/epoll.h>
#include <fcntl.h>
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);