This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: libtldl update for MacOS X
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 18 Dec 2003 22:28:53 +0100
- Subject: FYI: Patch: libtldl update for MacOS X
Hi list,
I commited the attached patch to fix libltdl/ltdl.c for macos X. The same fix
was used in boehm-gc/dyn_load.c before. Thats why I used it here too.
Michael
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2458
diff -u -b -B -r1.2458 ChangeLog
--- ChangeLog 18 Dec 2003 21:18:34 -0000 1.2458
+++ ChangeLog 18 Dec 2003 21:22:16 -0000
@@ -1,5 +1,9 @@
2003-12-18 Michael Koch <konqueror@gmx.de>
+ * libltdl/ltdl.c: Define __private_extern__ if needed.
+
+2003-12-18 Michael Koch <konqueror@gmx.de>
+
* libltdl/.cvsignore: Ignore autom4te.cache
* libltdl/Makefile.in: Regenerated.
* libltdl/aclocal.m4: Regenerated.
Index: libltdl/ltdl.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/libltdl/ltdl.c,v
retrieving revision 1.5
diff -u -b -B -r1.5 ltdl.c
--- libltdl/ltdl.c 16 Dec 2003 21:48:24 -0000 1.5
+++ libltdl/ltdl.c 18 Dec 2003 21:22:22 -0000
@@ -1584,7 +1584,13 @@
#if HAVE_MACH_O_DYLD_H
+# ifndef __private_extern__
+# define __private_extern__ extern
# include <mach-o/dyld.h>
+# undef __private_extern__
+# else
+# include <mach-o/dyld.h>
+# endif
#endif
#include <mach-o/getsect.h>