[Darwine] compiling wine on Darwin/MacOS X 5/10

Pierre d'Herbemont stegefin at free.fr
Fri Apr 16 03:03:25 CDT 2004


Emmanuel,

Index: libs/wine/loader.c
===================================================================
RCS file: /home/wine/wine/libs/wine/loader.c,v
retrieving revision 1.16
diff -u -r1.16 loader.c
--- libs/wine/loader.c	2 Jan 2004 21:08:05 -0000	1.16
+++ libs/wine/loader.c	15 Apr 2004 18:17:07 -0000
@@ -182,6 +182,9 @@
+#ifdef __APPLE__
+        if ((test_only == 0x2) && (ret = wine_dlopen(path, RTLD_NOW | 
RTLD_GLOBAL, error, errorsize ))) break;
+#endif

+#ifdef __APPLE__
+    if (!(ntdll = dlopen_dll( "ntdll.dll", error, error_size, 0x2, 
&file_exists ))) return;
+#else
      if (!(ntdll = dlopen_dll( "ntdll.dll", error, error_size, 0, 
&file_exists ))) return;
+#endif


These tests are no longer useful on Mac OS X. It was when ntdll was 
built as a dylib.
However the check for environ is useful.

Pierre

On 15 avr. 04, at 23:36, emmanuel maillard wrote:

> Hi,
> here come some patches to build wine on Darwin/OS X
>
> Changelog
>          Build dylib on Darwin
>
> emmanuel
>
> <libs.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1052 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040416/1caab88c/attachment.bin


More information about the wine-devel mailing list