diff --git a/jni/dc_wrapper.c b/jni/dc_wrapper.c index 8bca6e06c..d834589f1 100644 --- a/jni/dc_wrapper.c +++ b/jni/dc_wrapper.c @@ -7,6 +7,15 @@ #include "deltachat-core-rust/deltachat-ffi/deltachat.h" +#if __ANDROID_API__ < 21 +#include +int epoll_create1(int flags) { + int fd = epoll_create(1000); + return fd; +} +#endif + + static dc_msg_t* get_dc_msg(JNIEnv *env, jobject obj);