ltdl.c: Define __private_extern__ if needed.
authorMichael Koch <konqueror@gmx.de>
Thu, 18 Dec 2003 21:23:47 +0000 (21:23 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Thu, 18 Dec 2003 21:23:47 +0000 (21:23 +0000)
2003-12-18  Michael Koch  <konqueror@gmx.de>

* libltdl/ltdl.c: Define __private_extern__ if needed.

From-SVN: r74801

libjava/ChangeLog
libjava/libltdl/ltdl.c

index 092c205..ecb767c 100644 (file)
@@ -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 98f3277..f691c8a 100644 (file)
@@ -1584,7 +1584,13 @@ static struct lt_user_dlloader sys_dld = {
 
 
 #if HAVE_MACH_O_DYLD_H
-# include <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>