Re: fpending Android bug

2023-01-17 Thread Bruno Haible
I wrote: > When they moved 'struct __sFILE' out of > into , they also removed its named fields. And the Termux environment, that I'm using for testing, contains a that contains all the 20 real fields. This file does not come from any Android NDK. This explains why I was confused about this 'stru

Re: fpending Android bug

2023-01-15 Thread Po Lu
Bruno Haible writes: > Ah, now that makes sense: When they moved 'struct __sFILE' out of > into , they also removed its named fields. > > In other words, looking at the timeline of the Android API level 19 support: > - They added this support in NDK r10e, > - In NDK r13b the elements of a FI

Re: fpending Android bug

2023-01-15 Thread Bruno Haible
Po Lu wrote: > It doesn't compile because ->_p and ->_base are undefined in FILE *. > ... > I'm using the NDK r25b; however, bits/struct_file.h in the NDK r25b only > includes: > > __BEGIN_DECLS > > /** The opaque structure implementing `FILE`. Do not make any assumptions > about its content. */

Re: fpending Android bug

2023-01-14 Thread Po Lu
Bruno Haible writes: > Before we make any change, we need to know what is wrong, i.e. what is > "the fpending bug on Android". You haven't said so, after I asked in > > > Please be specific: What do you mean by "not works"? Do

Re: fpending Android bug

2023-01-14 Thread Bruno Haible
I wrote: > - If you are using an Android NDK with __ANDROID_API__ being >= 23, > the function __fpending exists and is declared, and therefore the > Gnulib m4/fpending.m4 arranges to not compile fpending.c. More exactly: - If you are using an Android NDK r14b or newer, with __ANDROID_

Re: fpending Android bug

2023-01-14 Thread Bruno Haible
Hi Po Lu, > I think I now have the right fix for the fpending bug on Android. Before we make any change, we need to know what is wrong, i.e. what is "the fpending bug on Android". You haven't said so, after I asked in Please

fpending Android bug

2023-01-14 Thread Po Lu
I think I now have the right fix for the fpending bug on Android. Google is very adamant that you should not do this, however, and they make no guarantee about the layout of the structure remaining as it is in the future. diff --git a/xcompile/lib/fpending.c b/xcompile/lib/fpending.c index afa840b