This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: WIN-10.1: patch to name-finder.h
Ok to commit?
Adam Megacz <patches@lists.megacz.com> writes:
> Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> > This should be HAVA_SYS_WAIT_H or some such shouldn't it?
>
> 2002-02-04 Adam Megacz <adam@xwt.org>
>
> * name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H
>
> Index: configure.in
> ===================================================================
> RCS file: /cvs/gcc/gcc/libjava/configure.in,v
> retrieving revision 1.106
> diff -u -r1.106 configure.in
> --- configure.in 2002/02/02 04:19:19 1.106
> +++ configure.in 2002/02/05 01:51:21
> @@ -749,6 +776,7 @@
> AC_DEFINE(HAVE_INTTYPES_H, 1, [Define if <inttypes.h> is available])
> AC_DEFINE(JV_HAVE_INTTYPES_H, 1, [Define if <inttypes.h> is available])
> ])
> +AC_HEADER_SYS_WAIT()
>
> AC_CHECK_TYPE([ssize_t], [int])
>
> Index: name-finder.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/libjava/include/name-finder.h,v
> retrieving revision 1.2
> diff -u -r1.2 name-finder.h
> --- name-finder.h 2000/05/30 23:26:02 1.2
> +++ name-finder.h 2002/02/05 01:53:00
> @@ -17,7 +17,10 @@
> #include <jvm.h>
>
> #include <sys/types.h>
> +
> +#ifdef HAVE_SYS_WAIT_H
> #include <sys/wait.h>
> +#endif
>
> #include <string.h>
> #include <stdio.h>
>
--