Robert Millan wrote:

> 2011/7/6 Christoph Egger <christ...@debian.org>:
> > -#ifdef __linux__
> > +#if defined(__linux__) || defined(__FreeBSD_kernel__)
> >  #define _XOPEN_SOURCE 700
> >  #else
> >  #define _XOPEN_SOURCE
> 
> Please don't use __FreeBSD_kernel__ for userland checks, it can break
> things when other systems based on kernel of FreeBSD (such as FreeBSD
> itself) decide to define this macro.
> 
> The following should work just fine:
> 
> #if defined(__linux__) || defined(__GLIBC__)
> // glibc code
> #else
> // ....
> 
As I mentioned in the grandparent to this mail, __GLIBC__ is not defined
here.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org
       `-



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to