From 3b7a060d1227d01af9b98e748388087c9a160410 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 2 May 2011 23:47:28 +0300 Subject: Compile fixes for Cygwin. --- posix/ChangeLog | 5 +++++ posix/gawkmisc.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'posix') 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 + + * gawkmisc.c (cygwin_premain0): Use the real type for the secondnd + argument. + Fri Apr 1 11:50:59 2011 Arnold D. Robbins * 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); } -- cgit v1.2.1