libs/wine/mmap.c: conditionally provide reserve_area()
Gerald Pfeifer
gerald at pfeifer.com
Sun Oct 14 06:11:02 CDT 2007
Noticed on FreeBSD; patch tested on FreeBSD 5.4 as well as SUSE Linux
10.0.
Gerald
ChangeLog:
Only provide reserve_area() when we actually use it.
Index: mmap.c
===================================================================
RCS file: /home/wine/wine/libs/wine/mmap.c,v
retrieving revision 1.20
diff -u -3 -p -r1.20 mmap.c
--- mmap.c 26 Jan 2007 13:48:42 -0000 1.20
+++ mmap.c 14 Oct 2007 11:09:28 -0000
@@ -243,6 +243,7 @@ static inline int mmap_reserve( void *ad
*
* Reserve as much memory as possible in the given area.
*/
+#if defined(__i386__) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) /* commented out until FreeBSD gets fixed */
static void reserve_area( void *addr, void *end )
{
size_t size = (char *)end - (char *)addr;
@@ -285,6 +286,7 @@ static void reserve_area( void *addr, vo
}
#endif
}
+#endif
/***********************************************************************
More information about the wine-patches
mailing list