On 22 October 2023 21:45:12 CEST, Jeff Law <jeffreya...@gmail.com> wrote: > > >On 10/22/23 10:09, Andrew Pinski wrote: >> On Sun, Oct 22, 2023 at 12:47 AM Florian Weimer <fwei...@redhat.com> wrote: >>> >>> Current glibc headers only declare fputs_unlocked for _GNU_SOURCE. >>> Defining the macro avoids an implicit function declaration. >> >> This does not help targets that don't use glibc though. >> Note for builtins testsuite there is a lib-fputs.c file which will >> define a fputs_unlock which is how it will link even if the libc does >> not define a fputs_unlock. >But isn't fputs_unlocked glibc specific to begin with? ie, the test really >doesn't make sense AFAICT on non-glibc targets.
I think uClibc had it too, at least at one point in the past.