This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]