On Sat, Feb 17, 2018 at 08:10:14PM +0000, James Cowgill wrote:
> Control: reopen -1
> 
> Hi,
> 
> The fix for this bug in 2.6.4-4 isn't good enough to fix the build of
> charybdis. charybdis uses some extra types (like u_int) which are not
> defined by glibc if strict POSIX compliance is enabled (which is what
> _POSIX_C_SOURCE does).
> 
> I think defining _DEFAULT_SOURCE should fix this. In glibc, defining
> _DEFAULT_SOURCE will also enable POSIX 2008 functions (but will not
> disable anything) so you may be able to drop the other defines. However,
> this is not a general upstreamable solution because this macro is not
> available in other C libraries (or is called something else).

flex should just nuke the bogus backported change and go back to what 
has always been working.

As I already wrote in the upstream bug, I do not think that flex should 
mess with feature test macros in the files it generates.

It worked without messing with feature test macros for > 20 years,
and it is documented.

> Thanks,
> James

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Reply via email to