Skip to content

Commit

Permalink
Revert "add epoll_create fallback which is missing in API<21"
Browse files Browse the repository at this point in the history
This reverts commit e29b6f9.

Since update to `mio` 0.8.5, it does not require `epoll_create1()`
function to be present on Android anymore.
  • Loading branch information
link2xt committed Feb 24, 2023
1 parent 9d99327 commit df58225
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions jni/dc_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down

0 comments on commit df58225

Please sign in to comment.