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] fix compilation on hppa2.0w-hp-hpux11.11


Hi all,

I did not follow the hpux port since a longer time.
But yesterday I switched the box on again and I failed with the magic TRUE/FALSE declaration stuff I was falling moons ago.


In natPosixProcess.c we have an include problem regarding hpux.

If TRUE and FALSE are already defined, we fail in sys/rw_lock.h. So we have to make sure that the TRUE and FALSE are not defined when we include sys/rw_lock.h. This is done with the below patch.

ok for trunk?

Thanks,
Andreas

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>

 #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]