mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
add epoll_create fallback which is missing in API<21
This commit is contained in:
parent
49ddacd7c6
commit
e29b6f9974
1 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,15 @@
|
||||||
#include "deltachat-core-rust/deltachat-ffi/deltachat.h"
|
#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);
|
static dc_msg_t* get_dc_msg(JNIEnv *env, jobject obj);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue