X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/1f8481e3637cc2d7459f0fe55e29f7a6fc6f3d59..22cd9b58e66ab346384441467e17b2f9f906e7f4:/ndk-patches/utmp.h.patch diff --git a/ndk-patches/utmp.h.patch b/ndk-patches/utmp.h.patch index 3c335e72..94af833b 100644 --- a/ndk-patches/utmp.h.patch +++ b/ndk-patches/utmp.h.patch @@ -1,18 +1,17 @@ -In Termux login_tty() is implemented in the libutil package to support android-21. - diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/utmp.h ./usr/include/utmp.h ---- /home/fornwall/lib/android-ndk/sysroot/usr/include/utmp.h 2017-06-20 17:41:56.000000000 +0200 -+++ ./usr/include/utmp.h 2017-07-10 09:47:42.422659110 +0200 -@@ -101,11 +101,7 @@ +--- /home/fornwall/lib/android-ndk/sysroot/usr/include/utmp.h 2017-11-09 09:57:12.000000000 +0100 ++++ ./usr/include/utmp.h 2017-11-15 12:01:37.108811692 +0100 +@@ -101,11 +101,8 @@ struct utmp* getutent(void); void endutent(void); - -#if __ANDROID_API__ >= 23 --int login_tty(int) __INTRODUCED_IN(23); +-int login_tty(int __fd) __INTRODUCED_IN(23); -#endif /* __ANDROID_API__ >= 23 */ - -+int login_tty(int); ++/* In Termux login_tty() is implemented in the libutil package to support android-21. */ ++int login_tty(int __fd); __END_DECLS