ndk-patches: Fix malformed <utmp.h> patch
[termux-packages] / ndk-patches / utmp.h.patch
CommitLineData
b833ad7a
FF
1In Termux login_tty() is implemented in the libutil package to support android-21.
2
3diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/utmp.h ./usr/include/utmp.h
4--- /home/fornwall/lib/android-ndk/sysroot/usr/include/utmp.h 2017-06-20 17:41:56.000000000 +0200
1f8481e3
FF
5+++ ./usr/include/utmp.h 2017-07-10 09:47:42.422659110 +0200
6@@ -101,11 +101,7 @@
7 struct utmp* getutent(void);
b833ad7a
FF
8 void endutent(void);
9
1f8481e3 10-
b833ad7a
FF
11-#if __ANDROID_API__ >= 23
12-int login_tty(int) __INTRODUCED_IN(23);
13-#endif /* __ANDROID_API__ >= 23 */
14-
b833ad7a
FF
15+int login_tty(int);
16
1f8481e3
FF
17 __END_DECLS
18