Upstreamed in 18f51bcf99101e5bf4c737239c44064227f34db8

ncurses 6.2 - patch 20200229

From 536b8ba02682dcf367efba46b9616a9695341797 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <anonymous.maarten@gmail.com>
Date: Tue, 17 Mar 2020 15:27:22 +0100
Subject: [PATCH 06/15] Add potentially missing STDOUT_FILENO

---
 progs/progs.priv.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/progs/progs.priv.h b/progs/progs.priv.h
index da7a5154..4734e740 100644
--- a/progs/progs.priv.h
+++ b/progs/progs.priv.h
@@ -155,6 +155,10 @@ extern int optind;
 #endif /* gcc workarounds */
 
 /* usually in <unistd.h> */
+#ifndef STDIN_FILENO
+#define STDIN_FILENO 0
+#endif
+
 #ifndef STDOUT_FILENO
 #define STDOUT_FILENO 1
 #endif
-- 
2.21.1

