pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: windows: msvc: Define STDIN/OUT/ERR_FILENO.
Date: Tue, 19 Jul 2022 00:53:47 +0000
Message-ID: <E1oDbUg-000C9a-F1@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c290e79cf07f5784fd68e726177503a6805c28d6

Modified Files
--------------
src/include/port/win32_msvc/unistd.h | 8 ++++++++
1 file changed, 8 insertions(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1oDbUg-000C9a-F1@gemulon.postgresql.org>
Permalink:  ../E1oDbUg-000C9a-F1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oDbUg-000C9a-F1@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: windows: msvc: Define STDIN/OUT/ERR_FILENO.
  In-Reply-To: <E1oDbUg-000C9a-F1@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox