summaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-05-02 23:47:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-05-02 23:47:28 +0300
commit3b7a060d1227d01af9b98e748388087c9a160410 (patch)
tree92ab078b7a1d13fa9ad789e6301c92ac47db61ee /posix
parenta21be4f3019e0aa047791189d921dbe718947bce (diff)
downloadgawk-3b7a060d1227d01af9b98e748388087c9a160410.tar.gz
Compile fixes for Cygwin.
Diffstat (limited to 'posix')
-rw-r--r--posix/ChangeLog5
-rw-r--r--posix/gawkmisc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/posix/ChangeLog b/posix/ChangeLog
index ceecc6b5..fdc034ac 100644
--- a/posix/ChangeLog
+++ b/posix/ChangeLog
@@ -1,3 +1,8 @@
+Mon May 2 23:38:06 2011 Corinna Vinschen <vinschen@redhat.com>
+
+ * gawkmisc.c (cygwin_premain0): Use the real type for the secondnd
+ argument.
+
Fri Apr 1 11:50:59 2011 Arnold D. Robbins <arnold@skeeve.com>
* gawkmisc.c (os_iastty): New function.
diff --git a/posix/gawkmisc.c b/posix/gawkmisc.c
index 6290ff57..f4bbf66b 100644
--- a/posix/gawkmisc.c
+++ b/posix/gawkmisc.c
@@ -257,7 +257,7 @@ files_are_same(char *path, SRCFILE *src)
#ifdef __CYGWIN__
void
-cygwin_premain0(int argc, char **argv, void *myself)
+cygwin_premain0(int argc, char **argv, struct per_process *myself)
{
static struct __cygwin_perfile pf[] = {
{ "", O_RDONLY | O_TEXT },
@@ -268,7 +268,7 @@ cygwin_premain0(int argc, char **argv, void *myself)
}
void
-cygwin_premain2(int argc, char **argv, void *myself)
+cygwin_premain2(int argc, char **argv, struct per_process *myself)
{
setmode(fileno (stdin), O_TEXT);
}