Re: pgsql: Fix interaction of Perl and stdbool.h

From: David Steele <david(at)pgmasters(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Fix interaction of Perl and stdbool.h
Date: 2018-03-23 16:19:57
Message-ID: 2e3048e6-63eb-deff-2e47-f9dfae75ec4a@pgmasters.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On 3/23/18 11:49 AM, Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> Fix interaction of Perl and stdbool.h
>
> Not sure if this broke it or it was already broken, but my compiler
> is now very unhappy.
>
> In file included from /usr/lib64/perl5/CORE/perl.h:2424,
> from plperl.h:60,
> from SPI.xs:18:
> /usr/lib64/perl5/CORE/handy.h:108:1: warning: "bool" redefined

One way to fix this is to mark bool as defined in plperl.c:

#ifndef HAS_BOOL
# define HAS_BOOL 1
#endif

Regards,
--
-David
david(at)pgmasters(dot)net

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-03-23 17:46:13 pgsql: Fix make rules that generate multiple output files.
Previous Message Teodor Sigaev 2018-03-23 16:14:24 pgsql: Exclude unlogged tables from base backups