apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: cvs commit: apr configure.in
Date Sat, 06 Jan 2001 04:04:07 GMT
Sascha Schumann <sascha@schumann.cx> writes:

> > Okay, what you committed looks nice but on RedHat 6.0 and RedHat 6.1
> > the AC_EGREP_HEADER doesn't find TCP_CORK in the kernel header file
> > because TCP_CORK is hidden by a check for the libc version.
> 
>     Hm, here it looks that way:
> 
>     #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
> 
>     Unless GCC defines __GLIBC__ (which it should not do), I
>     don't see any way how this expression can evaluate to false.

GCC doesn't define __GLIBC__, glibc header files do (<features.h>).

Try

#include <stdio.h>
#if defined(__GLIBC__)
#error gobble
#endif

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message