This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [patch] fix compilation on hppa2.0w-hp-hpux11.11
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: toa at pop dot agri dot ch (Andreas Tobler)
- Cc: java-patches at gcc dot gnu dot org
- Date: Wed, 4 Jul 2007 16:25:28 -0400 (EDT)
- Subject: Re: [patch] fix compilation on hppa2.0w-hp-hpux11.11
> 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.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)