This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [patch] gcc4 fixes
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 18 May 2005 10:01:33 +0200
- Subject: Re: [patch] gcc4 fixes
- References: <428A7520.7FD9925C@dessent.net>
- Reply-to: cygwin-patches at cygwin dot com
On May 17 15:50, Brian Dessent wrote:
> diff -u -r1.109 mmap.cc
> --- mmap.cc 2 May 2005 03:50:07 -0000 1.109
> +++ mmap.cc 17 May 2005 22:40:14 -0000
> @@ -500,14 +500,14 @@
> }
> }
>
> +static DWORD granularity = getshmlba ();
> +
> extern "C" void *
> mmap64 (void *addr, size_t len, int prot, int flags, int fd, _off64_t off)
> {
> syscall_printf ("addr %x, len %u, prot %x, flags %x, fd %d, off %D",
> addr, len, prot, flags, fd, off);
>
> - static DWORD granularity = getshmlba ();
> -
> /* Error conditions according to SUSv2 */
> if (off % getpagesize ()
> || (!(flags & MAP_SHARED) && !(flags & MAP_PRIVATE))
>
While this might help to avoid... something, I'm seriously wondering
what's wrong with this expression. Why does each new version of gcc
add new incompatibilities?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.