Re: PL/Perl and Perl 5.8 - Mailing list pgsql-hackers

From Neil Conway
Subject Re: PL/Perl and Perl 5.8
Date
Msg-id 87r8eopzdf.fsf@mailbox.samurai.com
Whole thread Raw
In response to Re: PL/Perl and Perl 5.8  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: PL/Perl and Perl 5.8
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Cleanup of /contrib
Next
From: Tom Lane
Date:
Subject: Re: Current CVS has strange parser for float type