Re: patch for libs/wine/mmap.c making wine running on FreeBSD 5.x
28 Jul
2005
28 Jul
'05
3:10 a.m.
"jean-marc DETREZ" <jm.detrez(a)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.
7441
Age (days ago)
7441
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov