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

From Tom Lane
Subject Re: ECPG interface: 7.4beta3 compile failure; CVS tip compile failure
Date
Msg-id 1078.1063909539@sss.pgh.pa.us
Whole thread Raw
In response to ECPG interface: 7.4beta3 compile failure; CVS tip compile failure  (Oliver Elphick <olly@lfix.co.uk>)
Responses Re: ECPG interface: 7.4beta3 compile failure; CVS tip  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-hackers
Oliver Elphick <olly@lfix.co.uk> writes:
> Line 138 begins the definition of strndup().  However, strndup() is also
> declared in string.h, which is included by this file.  If I rename this
> function to estrndup() (and also where it is called, further down) the
> compilation succeeds.

Hm, is strndup defined as a macro in your string.h?  I suspect it's not
a good idea to be providing a local definition of something that might
be considered a standard function.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: Killing the backend to cancel a long waiting query
Next
From: Oliver Elphick
Date:
Subject: Re: ECPG interface: 7.4beta3 compile failure; CVS tip