summaryrefslogtreecommitdiff
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-11-19 10:05:03 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-11-19 10:05:03 +0000
commita6458d1dddddd3501ffc2a8e9e4ff02c9266c6da (patch)
tree15f3a285bee9689b9686f6c32e7c6659b363b446 /libiberty/pexecute.c
parent8cacfe11536721c59e59ecfde53c14be0b00423b (diff)
downloadgcc-a6458d1dddddd3501ffc2a8e9e4ff02c9266c6da.tar.gz
configure.in: Call AC_HEADER_SYS_WAIT.
* configure.in: Call AC_HEADER_SYS_WAIT. * pexecute.c: Include sys/wait.h when !IN_GCC. From-SVN: r23711
Diffstat (limited to 'libiberty/pexecute.c')
-rw-r--r--libiberty/pexecute.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/pexecute.c b/libiberty/pexecute.c
index eb1a57daa57..94fb2484966 100644
--- a/libiberty/pexecute.c
+++ b/libiberty/pexecute.c
@@ -35,6 +35,9 @@ Boston, MA 02111-1307, USA. */
#include <unistd.h>
#endif
#define ISSPACE (x) isspace(x)
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
#endif
#ifdef vfork /* Autoconf may define this to fork for us. */