termux-packages/packages/groff/vasnprintf_android.patch

14 lines
738 B
Diff

diff -uNr groff-1.22.4/lib/vasnprintf.c groff-1.22.4.mod/lib/vasnprintf.c
--- groff-1.22.4/lib/vasnprintf.c 2018-12-23 17:34:16.000000000 +0300
+++ groff-1.22.4.mod/lib/vasnprintf.c 2021-09-30 20:22:47.817441906 +0300
@@ -4874,7 +4874,8 @@
# if ! (((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) \
&& !defined __UCLIBC__) \
|| (defined __APPLE__ && defined __MACH__) \
- || (defined _WIN32 && ! defined __CYGWIN__))
+ || (defined _WIN32 && ! defined __CYGWIN__) \
+ || defined(__ANDROID__))
fbp[1] = '%';
fbp[2] = 'n';
fbp[3] = '\0';