Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    60f8133d
    Declare mkdtemp() only if we're providing it. · 60f8133d
    Tom Lane authored
    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 9e6b1bf2.  Back-patch
    to all supported branches, as that was.
    60f8133d
    History
    Declare mkdtemp() only if we're providing it.
    Tom Lane authored
    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 9e6b1bf2.  Back-patch
    to all supported branches, as that was.