[PATCH] PAM Support for Busybox Login

Dave Hylands dhylands at gmail.com
Sun Oct 1 07:34:23 PDT 2006


Hi Denis,

> +#ifdef CONFIG_PAM
>
> #ifdef does not detect typos in macro names. #if ENABLE_PAM is better.

#if doesn't detect typos in macros either.  The C preprocessor treats
undefined macros as 0 (at least for the purposes of #if statements).

There may be other reasons to prefer #if to #ifdef, but the particular
one you gave doesn't wash.

-- 
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/


More information about the busybox mailing list