This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] gcc4 fixes


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]