changeset 2855:612eb81b76eb

[xemacs-hg @ 2005-07-12 12:22:11 by malcolmp] Fixed a crash with the MacOS X DLL code that appeared in Tiger.
author malcolmp
date Tue, 12 Jul 2005 12:22:13 +0000
parents b51ad701231a
children 93649185a4bc
files src/ChangeLog src/sysdll.c
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <atanu@icsi.berkeley.edu>
+
+	* 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  <kehoea@parhasard.net>
 
 	* console-msw.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
     {