]> granicus.if.org Git - postgresql/commit
Declare mkdtemp() only if we're providing it.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 18 Oct 2014 02:55:33 +0000 (22:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 18 Oct 2014 02:55:33 +0000 (22:55 -0400)
commit28e9ebb9999c33680acafef5ece33b27e0f9ba3f
treeaf6b22516be319f7766ccc5dd14ef1c0e8e132e4
parent96139cfbbc1581d6f17b601b37ce9dda88d36322
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.
src/include/port.h