postgresql/src/include/port
Nathan Bossart 555bc89c90 windows: msvc: Define STDIN/OUT/ERR_FILENO.
This commit (c290e79cf0) was originally back-patched to v15.
Commit 97550c0711 added a new use of STDERR_FILENO, and it was
back-patched all the way to v11, thus breaking MSVC builds for v11
through v14.  Since STDERR_FILENO is now needed on older versions,
let's back-patch c290e79cf0 down to v11, too.

Here follows the original commit message describing the change:

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)
Discussion: https://postgr.es/m/20231017164517.GA613565%40nathanxps13
Backpatch-through: 11
2023-10-17 16:11:03 -05:00
..
atomics Update copyright for 2021 2021-01-02 13:06:25 -05:00
win32 Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
win32_msvc windows: msvc: Define STDIN/OUT/ERR_FILENO. 2023-10-17 16:11:03 -05:00
aix.h Attempt to work around a 32bit xlc compiler bug from a different place. 2015-08-08 01:19:02 +02:00
atomics.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
cygwin.h Remove obsolete cygwin.h hack 2020-08-15 11:27:41 +02:00
darwin.h Refer to OS X as "macOS", except for the port name which is still "darwin". 2016-09-25 15:40:57 -04:00
freebsd.h Default to wal_sync_method=fdatasync on FreeBSD. 2021-02-15 16:04:59 +13:00
hpux.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
linux.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
netbsd.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
openbsd.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_bitutils.h Get rid of artificial restriction on hash table sizes on Windows. 2021-07-25 14:02:27 -04:00
pg_bswap.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_crc32c.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_iovec.h Probe for preadv/pwritev in a more macOS-friendly way. 2021-07-12 19:17:35 -04:00
pg_pthread.h Add missing pthread_barrier_t. 2021-03-10 17:44:04 +13:00
solaris.h Remove obsolete HAVE_BUGGY_SOLARIS_STRTOD 2020-08-15 11:27:41 +02:00
win32.h Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
win32_port.h Fix detection of unseekable files for fseek() and ftello() with MSVC 2023-04-12 09:09:58 +09:00