[PATCH] threadlib: fix case patterns for older Solaris.

2023-01-24 Thread Nick Bowler
The case pattern which matches solaris2.[1-9] etc. is not fully quoted, so the brackets get eaten by m4 and don't actually make it into the resulting configure script, giving just: case "$host_os" in solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) which is obviously not correct. * m4/

vasnprintf.c Android bug?

2023-01-24 Thread Po Lu
With the build API version set to 21 on the NDK r26b, vasnprintf.c needs to include: #include or else it cannot find mbstate_t. In addition, this warning is still emitted by Clang: ANDROID_CC vasnprintf.o vasnprintf.c:2416:21: warning: variable 'flags' set but not used [-Wunused-but-set-va

Re: alignasof, stdalign: Fix a compilation error on FreeBSD 12.0

2023-01-24 Thread Bruno Haible
PS: For this patch, I needed to know which compiler versions support __builtin_offsetof. This test program = typedef struct { char a; double b; int c; } foo; int xxx = __builtin_offsetof (foo, c); #include int yyy = offsetof (foo, c); ==

alignasof, stdalign: Fix a compilation error on FreeBSD 12.0

2023-01-24 Thread Bruno Haible
On FreeBSD 12.0/i386 I get a compilation error when building a testdir for module 'rawmemchr'. On the master branch, the first error is: In file included from ../../gllib/rawmemchr.c:17: In file included from ../config.h:1018: In file included from /usr/include/stddef.h:41: /usr/include/sys/_type