Fix bad errno usage
authorCédric Villemain <cedric@2ndquadrant.com>
Tue, 21 May 2019 17:05:45 +0000 (19:05 +0200)
committerCédric Villemain <cedric@2ndquadrant.com>
Tue, 21 May 2019 17:05:45 +0000 (19:05 +0200)
commit29694e43a759345eea410f9ad92e1bdb65144efc
tree4ec4921fa2e1bc17e2bd96a89241186f4663e01f
parente47fd4fe56b029d8192274fedb144cc53f22fe84
Fix bad errno usage

Triggered by PostgreSQL a2a8acd152:
[...]
    This patch adds a hack to cause an (admittedly obscure) compiler error
    for such unsafe usages.  With the current code, the error will only be seen
    on Linux, macOS, and FreeBSD, but that should certainly be enough to catch
    mistakes in the buildfarm if they somehow get missed earlier.
[...]
pgfincore.c