From 49c5b4d558c81e2a2a9683bfa052c7b36f5946f0 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 25 Jul 2015 18:20:06 -0400 Subject: [PATCH] ndk_patches: Fix for mosh in --- ndk_patches/sys-select.h.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ndk_patches/sys-select.h.patch diff --git a/ndk_patches/sys-select.h.patch b/ndk_patches/sys-select.h.patch new file mode 100644 index 000000000..b6684854f --- /dev/null +++ b/ndk_patches/sys-select.h.patch @@ -0,0 +1,14 @@ +Mosh needs this. + +diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/sys/select.h ./usr/include/sys/select.h +--- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/sys/select.h 2014-10-14 22:53:49.000000000 -0400 ++++ ./usr/include/sys/select.h 2015-07-23 19:19:06.375287284 -0400 +@@ -54,7 +54,7 @@ + #if defined(__BIONIC_FORTIFY) + extern void __FD_CLR_chk(int, fd_set*, size_t); + extern void __FD_SET_chk(int, fd_set*, size_t); +-extern int __FD_ISSET_chk(int, fd_set*, size_t); ++extern int __FD_ISSET_chk(int, fd_set const*, size_t); + #define FD_CLR(fd, set) __FD_CLR_chk(fd, set, __bos(set)) + #define FD_SET(fd, set) __FD_SET_chk(fd, set, __bos(set)) + #define FD_ISSET(fd, set) __FD_ISSET_chk(fd, set, __bos(set))