LFS-6.6, Stage2, glibc, nscd.c:442

Mike McCarty Mike.McCarty at sbcglobal.net
Mon Jun 7 16:42:50 PDT 2010


Bruce Dubbs wrote:

[...]

> After configure:
> 
> #ifdef TARGET_LIBC_PROVIDES_SSP
> #undef TARGET_LIBC_PROVIDES_SSP
> #endif
> 
> #define TARGET_LIBC_PROVIDES_SSP 1

Modern C compilers do not require that little idiom to prevent
a warning. #undefine-ing something which is not defined is not
supposed to gen a warning.

$ cat undef.c
#undef FRED
#undef FRED

int main(void) {
     return 0;
}

$ gcc -o undef undef.c
$

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!



More information about the lfs-support mailing list