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

From Peter Eisentraut
Subject Re: PL/Perl and Perl 5.8
Date
Msg-id Pine.LNX.4.44.0210181829260.928-100000@localhost.localdomain
Whole thread Raw
In response to Re: PL/Perl and Perl 5.8  (Neil Conway <neilc@samurai.com>)
Responses Re: PL/Perl and Perl 5.8  (Neil Conway <neilc@samurai.com>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Cleanup of /contrib
Next
From: Peter Eisentraut
Date:
Subject: Re: pg_dump and large files - is this a problem?