add epoll_create fallback which is missing in API<21

This commit is contained in:
B. Petersen 2022-06-27 19:43:25 +02:00 committed by bjoern
parent 49ddacd7c6
commit e29b6f9974

View file

@ -7,6 +7,15 @@
#include "deltachat-core-rust/deltachat-ffi/deltachat.h"
#if __ANDROID_API__ < 21
#include <sys/epoll.h>
int epoll_create1(int flags) {
int fd = epoll_create(1000);
return fd;
}
#endif
static dc_msg_t* get_dc_msg(JNIEnv *env, jobject obj);