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]

Re: [patch] fix compilation on hppa2.0w-hp-hpux11.11


John David Anglin wrote:
2007-07-04 Andreas Tobler <a.tobler@schweiz.org>

	* java/lang/natPosixProcess.cc: Reorder includes to fix compilation
	on hppa2.0w-hp-hpux11.11.

Index: java/lang/natPosixProcess.cc
===================================================================
--- java/lang/natPosixProcess.cc        (revision 126274)
+++ java/lang/natPosixProcess.cc        (working copy)
@@ -28,10 +28,10 @@
  #include <unistd.h>
  #include <pthread.h>

+#include <posix.h>
+#include <posix-threads.h>
  #include <gcj/cni.h>
  #include <jvm.h>
-#include <posix.h>
-#include <posix-threads.h>

If I remember correctly, this can be fixed by replacing the gcj/cni.h include with an include of platform.h. In any case, posix.h includes gcj/cni.h, so including it is redundant.

Yes, the follow-up one would remove the include <gcj/cni.h>. Was testing this just before.


Andreas


Index: java/lang/natPosixProcess.cc =================================================================== --- java/lang/natPosixProcess.cc (revision 126274) +++ java/lang/natPosixProcess.cc (working copy) @@ -28,10 +28,9 @@ #include <unistd.h> #include <pthread.h>

-#include <gcj/cni.h>
-#include <jvm.h>
 #include <posix.h>
 #include <posix-threads.h>
+#include <jvm.h>

 #include <java/lang/PosixProcess$ProcessManager.h>
 #include <java/lang/PosixProcess.h>


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