summaryrefslogtreecommitdiff
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-19 10:05:03 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-19 10:05:03 +0000
commit1ed7db2f1203ed557f10d87a5496286c6f0fea14 (patch)
tree15f3a285bee9689b9686f6c32e7c6659b363b446 /libiberty/pexecute.c
parenta54523058a95249ce24e273432ebdadc0a366007 (diff)
downloadgcc-1ed7db2f1203ed557f10d87a5496286c6f0fea14.tar.gz
* configure.in: Call AC_HEADER_SYS_WAIT.
* pexecute.c: Include sys/wait.h when !IN_GCC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23711 138bc75d-0d04-0410-961f-82ee72b054a4
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. */