name-finder.h: Conditionally include sys/wait.h.
authorTom Tromey <tromey@redhat.com>
Thu, 7 Feb 2002 19:25:28 +0000 (19:25 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 7 Feb 2002 19:25:28 +0000 (19:25 +0000)
* include/name-finder.h: Conditionally include sys/wait.h.
* include/config.h.in: Rebuilt.

From-SVN: r49585

libjava/ChangeLog
libjava/include/config.h.in
libjava/include/name-finder.h

index ea1677d2ce9accaca1059665c782c1b13400b2c0..537536daf635cc0948291f4772f8c869352f55c3 100644 (file)
@@ -1,5 +1,8 @@
 2002-02-07  Tom Tromey  <tromey@redhat.com>
 
+       * include/name-finder.h: Conditionally include sys/wait.h.
+       * include/config.h.in: Rebuilt.
+
        * java/io/natFile.cc (_access): Don't stack-allocate buffer.
        Size buffer based on real size of string.
        (_stat): Likewise.
index 429e1ce83ca74ff884bbb63c064766d0285bde0f..94d3b60a1801386863f8a2f960e8de46d701c1a0 100644 (file)
@@ -13,6 +13,9 @@
 /* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
 #undef HAVE_ALLOCA_H
 
+/* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
+#undef HAVE_SYS_WAIT_H
+
 /* Define if your struct tm has tm_zone.  */
 #undef HAVE_TM_ZONE
 
index f2a9aa1587e92f5e61ddc5d7875d0632f6ba21a4..46ae20a3293df03a8c12ff47fa5cd6860d2ce0aa 100644 (file)
@@ -1,6 +1,6 @@
 // name-finder.h - Convert addresses to names
 
-/* Copyright (C) 2000  Red Hat Inc
+/* Copyright (C) 2000, 2002  Free Software Foundation, Inc
 
    This file is part of libgcj.
 
@@ -18,7 +18,9 @@ details.  */
 
 #include <sys/types.h>
 
+#ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
+#endif
 
 #include <string.h>
 #include <stdio.h>