[1/2] loader: FreeBSD requires pre_exec() on x86_64

David Naylor dbn at freebsd.org
Mon Feb 2 14:20:54 CST 2015


Just as with i386, FreeBSD requires the maximum size of the data segment to be
extended on x86_64 for Wine to work correctly.
---
 loader/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/loader/main.c b/loader/main.c
index ac67290..bb4f949 100644
--- a/loader/main.c
+++ b/loader/main.c
@@ -181,7 +181,7 @@ static int pre_exec(void)
     return 1;  /* we have a preloader on x86-64 */
 }
 
-#elif (defined(__FreeBSD__) || defined (__FreeBSD_kernel__) || defined(__DragonFly__)) && defined(__i386__)
+#elif (defined(__FreeBSD__) || defined (__FreeBSD_kernel__) || defined(__DragonFly__)) && (defined(__i386__) || defined(__x86_64__))
 
 static int pre_exec(void)
 {
-- 
2.2.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part.
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150202/8ed4e2d6/attachment.sig>


More information about the wine-patches mailing list