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


> 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)


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