This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Fix for systems without ltdl
- To: java-patches at gcc dot gnu dot org
- Subject: Fix for systems without ltdl
- From: Anthony Green <green at redhat dot com>
- Date: Sat, 2 Jun 2001 12:26:58 -0700
- Reply-to: green at cygnus dot com
Systems where USE_LTDL is not defined need an alternate implementation
of _Jv_FindSymbolInExecutable.
Ok for trunk?
2001-06-02 Anthony Green <green@redhat.com>
* java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
alternate when USE_LTDL not defined.
Index: libjava/java/lang/natRuntime.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/natRuntime.cc,v
retrieving revision 1.16
diff -u -p -r1.16 natRuntime.cc
--- natRuntime.cc 2001/03/26 07:05:32 1.16
+++ natRuntime.cc 2001/06/02 19:20:10
@@ -72,6 +72,14 @@ _Jv_FindSymbolInExecutable (const char *
return lt_dlsym (NULL, symname);
}
+#else
+
+void *
+_Jv_FindSymbolInExecutable (const char *symname)
+{
+ return NULL;
+}
+
#endif /* USE_LTDL */
void