Re: Bug#632499: redis: FTBFS (kfreebsd): needs small adjustment
2011/7/7 Chris Lamb <firstname.lastname@example.org>:
>> 2011/7/7 Chris Lamb <email@example.com>:
>> > As I mentioned in the grandparent to this mail, __GLIBC__ is not
>> > defined here.
>> It is, but only after <features.h> has been included.
> Please read the mail I referred to - including <features.h> does not
Sorry I wasn't clear enough, there's no need to #include <features.h>.
__GLIBC__ is a pre-processor macro on GNU/kFreeBSD and __linux__ is a
pre-processor macro on GNU/Linux. So the following:
#if defined(__linux__) || defined(__GLIBC__)
will work on (at least) these two platforms.