mc: multple fixes (#2367)
[termux-packages] / ndk-patches / pty.h.patch
1 diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/pty.h ./usr/include/pty.h
2 --- /home/fornwall/lib/android-ndk/sysroot/usr/include/pty.h 2017-11-09 09:57:12.000000000 +0100
3 +++ ./usr/include/pty.h 2017-11-15 11:52:53.115077179 +0100
4 @@ -36,12 +36,9 @@
5
6 __BEGIN_DECLS
7
8 -
9 -#if __ANDROID_API__ >= 23
10 -int openpty(int* __master_fd, int* __slave_fd, char* __slave_name, const struct termios* __termios_ptr, const struct winsize* __winsize_ptr) __INTRODUCED_IN(23);
11 -int forkpty(int* __master_fd, char* __slave_name, const struct termios* __termios_ptr, const struct winsize* __winsize_ptr) __INTRODUCED_IN(23);
12 -#endif /* __ANDROID_API__ >= 23 */
13 -
14 +/* In Termux these are implemented in the libutil package to support android-21. */
15 +int openpty(int* __master_fd, int* __slave_fd, char* __slave_name, const struct termios* __termios_ptr, const struct winsize* __winsize_ptr);
16 +int forkpty(int* __master_fd, char* __slave_name, const struct termios* __termios_ptr, const struct winsize* __winsize_ptr);
17
18 __END_DECLS
19