summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-05-17 17:45:53 +0300
committerArnold D. Robbins <arnold@skeeve.com>2022-05-17 17:45:53 +0300
commitbb5192beef4102b3240f22c3baf7f7195298163b (patch)
tree53119841e6eaa52b6970959abd6eaf61a7604327
parentfee5df67602b4194d1fdddbfd6b9446b292f136f (diff)
parent3fc67d1b51dc36b70ccd39178ae2d65cf8f2368d (diff)
downloadgawk-bb5192beef4102b3240f22c3baf7f7195298163b.tar.gz
Merge branch 'gawk-5.1-stable'
-rw-r--r--posix/ChangeLog6
-rw-r--r--posix/gawkmisc.c5
2 files changed, 7 insertions, 4 deletions
diff --git a/posix/ChangeLog b/posix/ChangeLog
index 06b16f74..a2aaba2c 100644
--- a/posix/ChangeLog
+++ b/posix/ChangeLog
@@ -1,3 +1,9 @@
+2022-05-17 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkmisc.c (CYGWIN): Remove unecessary includes, leaving only
+ include of <io.h>. Thanks to Tom Gray <tom_gray@keysight.com>
+ for the report.
+
2021-12-01 Arnold D. Robbins <arnold@skeeve.com>
* gawkmisc.c (os_maybe_set_errno): New, empty function.
diff --git a/posix/gawkmisc.c b/posix/gawkmisc.c
index e6f316c9..fafdfc50 100644
--- a/posix/gawkmisc.c
+++ b/posix/gawkmisc.c
@@ -18,10 +18,7 @@
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifdef __CYGWIN__
-#include <stdio.h>
-#include <windows.h>
-#include <sys/cygwin.h>
-#include <io.h>
+#include <io.h> /* for declaration of setmode(). */
#endif
const char quote = '\'';