From a27fefe150437b815e05a7b2f665ecd7beadee1c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Mon, 9 Aug 1999 21:36:23 +0000 Subject: import gdb-1999-08-09 snapshot --- gdb/ser-pipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/ser-pipe.c') diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c index 3c37f141ae2..4941845c020 100644 --- a/gdb/ser-pipe.c +++ b/gdb/ser-pipe.c @@ -23,7 +23,9 @@ #include "defs.h" #include "serial.h" #include +#ifdef HAVE_SYS_WAIT_H #include +#endif #include #include #include @@ -70,7 +72,7 @@ pipe_open (scb, name) serial_t scb; const char *name; { -#if !defined(O_NONBLOCK) || !defined(F_GETFL) || !defined(F_SETFL) +#if !defined(O_NONBLOCK) || !defined(F_GETFL) || !defined(F_SETFL) || !HAVE_SOCKETPAIR return -1; #else struct pipe_state *state; -- cgit v1.2.1