[patch] fix compilation on hppa2.0w-hp-hpux11.11
Andreas Tobler
toa@pop.agri.ch
Wed Jul 4 19:53:00 GMT 2007
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>
More information about the Java-patches
mailing list