From 1c01fa45da3a8a255fb3abcbf731506bb78288ab Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 2 Apr 2023 05:48:23 +0900 Subject: [PATCH] m4: Fix build with strict C99 %ci:no-build --- packages/m4/tests-strerror_r.c.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/m4/tests-strerror_r.c.patch diff --git a/packages/m4/tests-strerror_r.c.patch b/packages/m4/tests-strerror_r.c.patch new file mode 100644 index 000000000..536a5193c --- /dev/null +++ b/packages/m4/tests-strerror_r.c.patch @@ -0,0 +1,11 @@ +--- a/tests/strerror_r.c ++++ b/tests/strerror_r.c +@@ -43,7 +43,7 @@ + #endif + int __xpg_strerror_r (int errnum, char *buf, size_t buflen); + +-#elif HAVE_DECL_STRERROR_R && !(__GLIBC__ >= 2 || defined __UCLIBC__ || defined __CYGWIN__) ++#elif HAVE_DECL_STRERROR_R && !(__GLIBC__ >= 2 || defined __UCLIBC__ || defined __CYGWIN__ || defined __ANDROID__) + + /* The system's strerror_r function is OK, except that its third argument + is 'int', not 'size_t', or its return type is wrong. */