summaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-02-20 22:01:46 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-02-20 22:01:46 +0200
commit5db38f775d9ba239e125d81dff2010a2ddacb48e (patch)
treeee821ef45dcfb228be40512bc871d48452232bfe /posix
parent4ce031ad3c3d157a425f721688a09a7dde018619 (diff)
downloadgawk-5db38f775d9ba239e125d81dff2010a2ddacb48e.tar.gz
Update posix/gawkmisc.c - remove cygwin code.
Diffstat (limited to 'posix')
-rw-r--r--posix/ChangeLog5
-rw-r--r--posix/gawkmisc.c19
2 files changed, 5 insertions, 19 deletions
diff --git a/posix/ChangeLog b/posix/ChangeLog
index cd1a2f68..ec37e1fb 100644
--- a/posix/ChangeLog
+++ b/posix/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-20 Corinna Vinschen <vinschen@redhat.com>
+
+ * gawkmisc.c (cygwin_premain0, cygwin_premain2): Remove.
+ No longer needed.
+
2016-10-23 Arnold D. Robbins <arnold@skeeve.com>
* General: Remove trailing whitespace from all relevant files.
diff --git a/posix/gawkmisc.c b/posix/gawkmisc.c
index 40950826..ecf5aff9 100644
--- a/posix/gawkmisc.c
+++ b/posix/gawkmisc.c
@@ -289,22 +289,3 @@ void
init_sockets(void)
{
}
-
-#ifdef __CYGWIN__
-void
-cygwin_premain0(int argc, char **argv, struct per_process *myself)
-{
- static struct __cygwin_perfile pf[] = {
- { "", O_RDONLY | O_TEXT },
- /*{ "", O_WRONLY | O_BINARY },*/
- { NULL, 0 }
- };
- cygwin_internal(CW_PERFILE, pf);
-}
-
-void
-cygwin_premain2(int argc, char **argv, struct per_process *myself)
-{
- setmode(fileno (stdin), O_TEXT);
-}
-#endif