Peter Eisentraut <peter_e@gmx.net> writes:
> Can you post some snippets from the relevant code sections? Following one
> of the links that were posted I gathered that this is related to
> crypt_r(), whose prototype is not exposed on my system unless you use
> _GNU_SOURCE. But I don't see any _crypt_struct here.
Yeah, the seems to be the culprit. Line 480 of reentr.h is part of the
definition of a monster struct; the relevent field is:
#ifdef HAS_CRYPT_R
#if CRYPT_R_PROTO == REENTRANT_PROTO_B_CCDCRYPTD* _crypt_data;
#elsestruct 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().
Cheers,
Neil
--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC