patch for libs/wine/mmap.c making wine running on FreeBSD 5.x

Dmitry Timoshkov dmitry at baikal.ru
Wed Jul 27 22:10:58 CDT 2005


"jean-marc DETREZ" <jm.detrez at cegetel.net> wrote:

> @@ -207,6 +207,13 @@ void *wine_anon_mmap( void *start, size_
>  #elif defined(__svr4__) || defined(__NetBSD__) || defined(__APPLE__)
>          if ( try_mmap_fixed( start, size, prot, flags, fdzero, 0 ) )
>              return start;
> +#elif defined(__FreeBSD__)
> + /*for FreeBSD assure system heap adress of 0x80000000*/
> + if (start == (void *)0x80000000)
> +  {
> +  if (try_mmap_fixed( start, size, prot, flags, fdzero, 0 ) )
> +  return start;
> +  }
>  #endif
>      }
>      return mmap( start, size, prot, flags, fdzero, 0 );

Why didn't you simply add __FreeBSD__ to the '#elif defined(__svr4__) ||
defined(__NetBSD__) || defined(__APPLE__)' case?

-- 
Dmitry.




More information about the wine-devel mailing list