Skip to content

Instantly share code, notes, and snippets.

@jifang
Created December 9, 2019 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jifang/b88731fb45dc81a695852f21661a206a to your computer and use it in GitHub Desktop.
Save jifang/b88731fb45dc81a695852f21661a206a to your computer and use it in GitHub Desktop.
Patch for compiling libev-4.19 with NDK r20b
--- libev-4.19.orig/ev_select.c 2019-12-09 15:00:08.000000000 -0500
+++ libev-4.19/ev_select.c 2019-12-09 14:49:46.000000000 -0500
@@ -47,7 +47,7 @@
#endif
#if defined(__ANDROID__) || defined(ANDROID)
-typedef int fd_mask;
+//typedef int fd_mask; // Android NDK r20b typedef fd_mask to unsigned long
#endif
#ifndef EV_SELECT_USE_FD_SET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment