On 18 August 2018 at 22:22, Reuben Thomas <[email protected]> wrote:
> On 18 August 2018 at 21:45, Bruno Haible <[email protected]> wrote:
>
>> Reuben Thomas wrote:
>> > This makes the build break again because of the problem I reported in
>> > glob_pattern_p.c (see my patch for it).
>>
>> Ah, I see. The macro 'weak_alias' apparently needs libc-config.h as well.
>>
>
> Yes. I assumed that "config.h" was a typo here, because the #ifndef _LIBC
> block seems to be fairly common in gnulib.
>
> I now get the same error, but with globfree.c. I am not sure why I didn't
> need this in my patches…
>
OK, globfree.c should already have seen libc-config.h via glob.h, so I
don't see why it's *not* working.
The precise error I get:
../../lib/globfree.c:40:1: warning: return type defaults to ‘int’
[enabled by default]
libc_hidden_def (globfree)
^
../../lib/globfree.c: In function ‘libc_hidden_def’:
../../lib/globfree.c:40:1: warning: type of ‘globfree’ defaults to
‘int’ [enabled by default]
../../lib/globfree.c:40:1: error: expected ‘{’ at end of input
--
https://rrt.sc3d.org