Re: ECPG interface: 7.4beta3 compile failure; CVS tip - Mailing list pgsql-hackers

From Oliver Elphick
Subject Re: ECPG interface: 7.4beta3 compile failure; CVS tip
Date
Msg-id 1063986576.18550.1659.camel@linda.lfix.co.uk
Whole thread Raw
In response to Re: ECPG interface: 7.4beta3 compile failure; CVS tip compile failure  (Michael Meskes <meskes@postgresql.org>)
Responses Re: ECPG interface: 7.4beta3 compile failure; CVS tip compile failure
List pgsql-hackers
On Fri, 2003-09-19 at 07:38, Michael Meskes wrote:
> I included strndup because some systems didn't seem to have it. Any idea
> what else I could do? Okay, I could rename it and use only the renamed
> function as it's just used internally.
> 
> What surprises me is that it compiles fine for me despite using the very
> same system as Oliver to compile.

Perhaps you should enclose your definition in
#ifndef __USE_GNU
#endif

src/include/port/linux.h now forces _GNU_SOURCE on, which in turn
defines __USE_GNU.  Do you somehow override the definition of
_GNU_SOURCE?

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
========================================   "Bring ye all the tithes into the storehouse, that      there may be meat in
minehouse, and prove me now      herewith, saith the LORD of hosts, if I will not open      you the windows of heaven,
andpour you out a       blessing, that there shall not be room enough to       receive it."           Malachi 3:10 
 



pgsql-hackers by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: 7.4beta2 vs 7.3.3
Next
From: "chakkara rangarajan"
Date:
Subject: Re: change of table name - any help