pgsql: Declare mkdtemp() only if we're providing it.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Declare mkdtemp() only if we're providing it.
Date: 2014-10-18 02:55:56
Message-ID: E1XfKBQ-0006du-SQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Declare mkdtemp() only if we're providing it.

Follow our usual style of providing an "extern" for a standard library
function only when we're also providing the implementation. This avoids
issues when the system headers declare the function slightly differently
than we do, as noted by Caleb Welton.

We might have to go to the extent of probing to see if the system headers
declare the function, but let's not do that until it's demonstrated to be
necessary.

Oversight in commit 9e6b1bf258170e62dac555fc82ff0536dfe01d29. Back-patch
to all supported branches, as that was.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/60f8133dc95d8d55ac52186eb9988559816cac49

Modified Files
--------------
src/include/port.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2014-10-18 13:43:19 pgsql: doc: Clean up pg_recvlogical reference page
Previous Message Tom Lane 2014-10-18 02:33:58 pgsql: Avoid core dump in _outPathInfo() for Path without a parent RelO