Neil Conway writes:
> #ifdef HAS_CRYPT_R
> #if CRYPT_R_PROTO == REENTRANT_PROTO_B_CCD
> CRYPTD* _crypt_data;
> #else
> struct crypt_data _crypt_struct;
> #endif
> #endif /* HAS_CRYPT_R */
>
> The "crypt_data" struct is defined in crypt.h, but only if _GNU_SOURCE
> is defined -- just like crypt_r().
The HAS_CRYPT_R is true because the function is available even without the
prototype, but the struct is not. A plain bug in Perl's configury
mechanism.
--
Peter Eisentraut peter_e@gmx.net