Re: ECPG interface: 7.4beta3 compile failure; CVS tip compile failure

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: PostgreSQL hackers list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ECPG interface: 7.4beta3 compile failure; CVS tip compile failure
Date: 2003-09-18 18:25:39
Message-ID: 1078.1063909539@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oliver Elphick <olly(at)lfix(dot)co(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 2003-09-18 18:44:25 Re: ECPG interface: 7.4beta3 compile failure; CVS tip
Previous Message Merlin Moncure 2003-09-18 18:18:24 Re: Killing the backend to cancel a long waiting query