threads-h: Fix compilation errors in C++ mode on Android

2023-01-09 Thread Bruno Haible
In a testdir on Android, I see compilation errors like this one: clang++ -ferror-limit=0 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/data/d

Re: Recognize functions added in future versions of Android

2023-01-09 Thread Bruno Haible
I wrote: > * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Use > gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. This is not sufficient, because there is another test for aligned_alloc in a different place. This fixes it. 2023-01-09 Bruno Haible aligned-malloc: Don'

Re: malloc-h: Fix compilation error in C++ mode on Android

2023-01-09 Thread Bruno Haible
I wrote: > + > +#@INCLUDE_NEXT@ @NEXT_MALLOC_H@ > + > +#else > +/* Normal invocation convention. */ > + > +#ifndef _@GUARD_PREFIX@_MALLOC_H > + > +#define _GL_ALREADY_INCLUDING_MALLOC_H > + > /* The include_next requires a split double-inclusion guard. */ > #if @HAVE_MALLOC_H@ > # @INCLUDE_NEX

reallocarray: Fix compilation error in C++ mode on Android

2023-01-09 Thread Bruno Haible
In a testdir on Android, I get this compilation error: clang++ -ferror-limit=0 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/data/data/com.te

getsubopt: Fix compilation error in C++ mode on Android

2023-01-09 Thread Bruno Haible
In a testdir on Android, I get this compilation error: clang++ -ferror-limit=0 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/data/data/com.te

[PATCH] better explain functions [q]set-acl.c

2023-01-09 Thread Ondrej Valousek
Improve comments for both functions --- lib/qset-acl.c | 16 +--- lib/set-acl.c | 13 +++-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/lib/qset-acl.c b/lib/qset-acl.c index c3442d060f..0ae026f031 100644 --- a/lib/qset-acl.c +++ b/lib/qset-acl.c @@ -27,13

malloc-h: Fix compilation errors in C++ mode on Android

2023-01-09 Thread Bruno Haible
Building a Gnulib testdir on Android, I see these error messages: clang++ -ferror-limit=0 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/data/

gettime: Fix compilation error in C++ mode on Android

2023-01-09 Thread Bruno Haible
In a testdir on Android, I see this compilation error: clang++ -DNO_INLINE_GETPASS=1 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/data/data/

malloc-h: Fix compilation error in C++ mode on Android

2023-01-09 Thread Bruno Haible
Building a testdir on Android, I get this compilation error: clang++ -DNO_INLINE_GETPASS=1 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/data