[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#669059: Reopening Bug #669059


On Fri, 25 May 2012 01:01:44 +0200, Svante Signell <svante.signell@telia.com> wrote:
> 10_kfreebsd_support.patch needs to to add a __GNU__ statement to take
> effect for GNU/Hurd. It seems that __GLIBC__ is not automatically
> defined.

Indeed __GLIBC__ is only defined once a glibc header has been included,
and thus subsequently its features.h :

    $ echo '' | gcc -dM -E -x c - -o - | grep \#define\ __G\\\(LIBC\\\|NU\\\)__
    #define __GNU__ 1
    $ echo '#include <stdio.h>' | gcc -dM -E -x c - -o - | grep \#define\ __G\\\(LIBC\\\|NU\\\)__
    #define __GLIBC__ 2
    #define __GNU__ 1


Attachment: pgpjIYDrdKzWI.pgp
Description: PGP signature

Reply to: