This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: Include ffi.h in link.cc.
- From: David Daney <ddaney at avtrex dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Mon, 06 Mar 2006 13:50:20 -0800
- Subject: Patch: Include ffi.h in link.cc.
The problem here is that link.cc needs ffi.h if USE_LIBFFI is defined.
If the interpreter is enabled, this is taken care of by java-interp.h.
Currently on mipsel-linux the interpreter is disabled, but ffi works
fine. The result: A build failure due to missing include of ffi.h in
link.cc.
This is needed to build on mipsel-linux.
No testing done other than to verify that the libgcj build completes
without errors on both i686-pc-linux-gnu native and mipsel-linux cross.
OK to commit?
I would have committed as obvious, but decided not to as I am not really
in much of a hurry.
2006-03-06 David Daney <ddaney@avtrex.com>
* link.cc: Include ffi.h if USE_LIBFFI defined.
Index: link.cc
===================================================================
--- link.cc (revision 111728)
+++ link.cc (working copy)
@@ -15,6 +15,12 @@
#include <stdio.h>
+#ifdef USE_LIBFFI
+extern "C" {
+#include <ffi.h>
+}
+#endif
+
#include <java-interp.h>
#include <jvm.h>