mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 01:39:18 +02:00
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:
parent
9d9932775a
commit
df58225192
1 changed files with 0 additions and 14 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue