From 9845682bda4149b5b3648f2d49a041aef5bc1af5 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Fri, 9 Jun 2017 18:16:19 -0400 Subject: Include on gdbserver/fork-child.c (and fix regressions) Hi, This is another obvious patch that fixes a thinko from my previous startup-with-shell series. We should conditionally include on gdb/gdbserver/fork-child.c because gdbserver will be putting the inferior's terminal on the correct mode after the call to fork_inferior, and for that it needs to ignore SIGTTOU. This patch fixes a bunch of regressions happening on AArch64 that were reported by Yao. gdb/gdbserver/ChangeLog: 2017-06-09 Sergio Durigan Junior * fork-child.c: Conditionally include . --- gdb/gdbserver/fork-child.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/gdbserver/fork-child.c') diff --git a/gdb/gdbserver/fork-child.c b/gdb/gdbserver/fork-child.c index a1a8ff1..1002620 100644 --- a/gdb/gdbserver/fork-child.c +++ b/gdb/gdbserver/fork-child.c @@ -19,6 +19,9 @@ #include "server.h" #include "job-control.h" #include "nat/fork-inferior.h" +#ifdef HAVE_SIGNAL_H +#include +#endif #ifdef SIGTTOU /* A file descriptor for the controlling terminal. */ -- cgit v1.1