packages/catacomb2: Support assembler code on Android.
[termux-packages] / ndk-patches / pty.h.patch
CommitLineData
b833ad7a 1diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/pty.h ./usr/include/pty.h
392b4b6b
FF
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 @@
b833ad7a 5
392b4b6b 6 __BEGIN_DECLS
b833ad7a 7
392b4b6b 8-
b833ad7a 9-#if __ANDROID_API__ >= 23
392b4b6b
FF
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);
b833ad7a 12-#endif /* __ANDROID_API__ >= 23 */
392b4b6b
FF
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);
b833ad7a
FF
17
18 __END_DECLS
392b4b6b 19