aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-02-07 19:25:28 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-02-07 19:25:28 +0000
commit9f2618df7e8f85de2b820157d41740b9533dded8 (patch)
tree271e138b6f0e5139941d128fbd597340feaec4d1
parentfc7563ecb0c86c8bb261652297fb27152c7b4aca (diff)
downloadgcc-9f2618df7e8f85de2b820157d41740b9533dded8.zip
gcc-9f2618df7e8f85de2b820157d41740b9533dded8.tar.gz
gcc-9f2618df7e8f85de2b820157d41740b9533dded8.tar.bz2
name-finder.h: Conditionally include sys/wait.h.
* include/name-finder.h: Conditionally include sys/wait.h. * include/config.h.in: Rebuilt. From-SVN: r49585
-rw-r--r--libjava/ChangeLog3
-rw-r--r--libjava/include/config.h.in3
-rw-r--r--libjava/include/name-finder.h4
3 files changed, 9 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index ea1677d..537536d 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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.
diff --git a/libjava/include/config.h.in b/libjava/include/config.h.in
index 429e1ce..94d3b60 100644
--- a/libjava/include/config.h.in
+++ b/libjava/include/config.h.in
@@ -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
diff --git a/libjava/include/name-finder.h b/libjava/include/name-finder.h
index f2a9aa1..46ae20a 100644
--- a/libjava/include/name-finder.h
+++ b/libjava/include/name-finder.h
@@ -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>