# HG changeset patch # User malcolmp # Date 1121170933 0 # Node ID 612eb81b76eb8a1b36fd8a244938b99a1fd2efea # Parent b51ad701231aa626b40be3277a7fa3866ca4cc53 [xemacs-hg @ 2005-07-12 12:22:11 by malcolmp] Fixed a crash with the MacOS X DLL code that appeared in Tiger. diff -r b51ad701231a -r 612eb81b76eb src/ChangeLog --- a/src/ChangeLog Mon Jul 11 21:51:08 2005 +0000 +++ b/src/ChangeLog Tue Jul 12 12:22:13 2005 +0000 @@ -1,3 +1,9 @@ +2005-07-11 Atanu Ghosh + + * sysdll.c (dll_open): Under MacOS X return NULL under the + filename is NULL. Fixes problems finding local symbols under 10.4 + (Tiger) + 2005-07-07 Aidan Kehoe * console-msw.c: diff -r b51ad701231a -r 612eb81b76eb src/sysdll.c --- a/src/sysdll.c Mon Jul 11 21:51:08 2005 +0000 +++ b/src/sysdll.c Tue Jul 12 12:22:13 2005 +0000 @@ -228,9 +228,15 @@ NSModule out; NSObjectFileImageReturnCode ret; + /* + * MacOS X dll support is for bundles, not the current executable, so return + * NULL is this case. However, dll_function() uses a special hack where a + * NULL handle can be used to find executable symbols. This satisfies the + * needs of ui-gtk.c but is not a general solution. + */ if (NILP (fname)) { - soname = NULL; + return NULL; } else {