diff options
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r-- | gdb/infptrace.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c index 32bd52cc545..a21eaa17f99 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -24,7 +24,13 @@ #include "inferior.h" #include "target.h" #include "gdb_string.h" -#include "wait.h" +#ifdef HAVE_WAIT_H +#include <wait.h> +#else +#ifdef HAVE_SYS_WAIT_H +#include <sys/wait.h> +#endif +#endif #include "command.h" #ifdef USG |