windows: msvc: Define STDIN/OUT/ERR_FILENO.

Andres Freund <andres@anarazel.de>

Commit: 92f478657c5544eba560047c39eba8a030ddb83e
Author: Andres Freund <andres@anarazel.de>
Date: 2022-07-19T00:22:35Z
Releases: 15.0
windows: msvc: Define STDIN/OUT/ERR_FILENO.

Because they are not available we've used _fileno(stdin) in some places, but
that doesn't reliably work, because stdin might be closed. This is the
prerequisite of the subsequent commit, fixing a failure introduced in
76e38b37a5.

Author: Andres Freund <andres@anarazel.de>
Reported-By: Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>
Message-Id: 20220520164558.ozb7lm6unakqzezi@alap3.anarazel.de (on pgsql-packagers)
Backpatch: 15-, where 76e38b37a5 came in

Files

PathChange+/−
src/include/port/win32_msvc/unistd.h modified +8 −0