Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc322c7

Browse files
windows: msvc: Define STDIN/OUT/ERR_FILENO.
This commit (c290e79) was originally back-patched to v15.Commit97550c0 added a new use of STDERR_FILENO, and it wasback-patched all the way to v11, thus breaking MSVC builds for v11through v14. Since STDERR_FILENO is now needed on older versions,let's back-patchc290e79 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, butthat doesn't reliably work, because stdin might be closed. This is theprerequisite of the subsequent commit, fixing a failure introduced in76e38b3.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%40nathanxps13Backpatch-through: 11
1 parent05b4614 commitbc322c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/include/port/win32_msvc/unistd.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
/* src/include/port/win32_msvc/unistd.h */
2+
3+
/*
4+
* MSVC does not define these, nor does _fileno(stdin) etc reliably work
5+
* (returns -1 if stdin/out/err are closed).
6+
*/
7+
#defineSTDIN_FILENO0
8+
#defineSTDOUT_FILENO1
9+
#defineSTDERR_FILENO2

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp