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

Re: Bug#632499: redis: FTBFS (kfreebsd): needs small adjustment



Robert Millan wrote:

> 2011/7/6 Christoph Egger <christoph@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
     `. `'`      lamby@debian.org
       `-


Reply to: