-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The old version of gnulib that m4 uses tries to use the %n printf modifier which aborts the process on Android 10 onwards. Fixes #4381 (thanks easyaspi314).
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -u -r ../m4-1.4.18/lib/vasnprintf.c ./lib/vasnprintf.c | ||
--- ../m4-1.4.18/lib/vasnprintf.c 2016-12-31 13:54:42.000000000 +0000 | ||
+++ ./lib/vasnprintf.c 2019-10-02 19:32:13.576211922 +0000 | ||
@@ -4858,7 +4858,7 @@ | ||
#endif | ||
*fbp = dp->conversion; | ||
#if USE_SNPRINTF | ||
-# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) | ||
+# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined(__ANDROID__)) | ||
fbp[1] = '%'; | ||
fbp[2] = 'n'; | ||
fbp[3] = '\0'; |