Fix the build of fork-running-state.c on NetBSD

Message ID 20200417165339.17036-1-n54@gmx.com
State New
Headers show
Series
  • Fix the build of fork-running-state.c on NetBSD
Related show

Commit Message

Kamil Rytarowski April 17, 2020, 4:53 p.m.
Include <signal.h> for kill(2).

gdb/testsuite/ChangeLog:

        * gdb.base/fork-running-state.c: Include "signal.h".
---
 gdb/testsuite/ChangeLog                     | 4 ++++
 gdb/testsuite/gdb.base/fork-running-state.c | 1 +
 2 files changed, 5 insertions(+)

--
2.25.0

Comments

Simon Marchi April 17, 2020, 8:10 p.m. | #1
On 2020-04-17 12:53 p.m., Kamil Rytarowski wrote:
> Include <signal.h> for kill(2).

> 

> gdb/testsuite/ChangeLog:

> 

>         * gdb.base/fork-running-state.c: Include "signal.h".

> ---

>  gdb/testsuite/ChangeLog                     | 4 ++++

>  gdb/testsuite/gdb.base/fork-running-state.c | 1 +

>  2 files changed, 5 insertions(+)

> 

> diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog

> index 81c555834ae..4e844c7d504 100644

> --- a/gdb/testsuite/ChangeLog

> +++ b/gdb/testsuite/ChangeLog

> @@ -1,3 +1,7 @@

> +2020-04-17  Kamil Rytarowski  <n54@gmx.com>

> +

> +	* gdb.base/fork-running-state.c: Include "signal.h".

> +

>  2020-04-17  Kamil Rytarowski  <n54@gmx.com>

> 

>  	* gdb.base/attach-twice.c: Include "sys/types.h".

> diff --git a/gdb/testsuite/gdb.base/fork-running-state.c b/gdb/testsuite/gdb.base/fork-running-state.c

> index a89c9418176..20bc3e6ae2d 100644

> --- a/gdb/testsuite/gdb.base/fork-running-state.c

> +++ b/gdb/testsuite/gdb.base/fork-running-state.c

> @@ -20,6 +20,7 @@

>  #include <sys/types.h>

>  #include <sys/wait.h>

>  #include <errno.h>

> +#include <signal.h>

> 

>  int save_parent;


Thanks, this is ok.

Simon

Patch

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 81c555834ae..4e844c7d504 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@ 
+2020-04-17  Kamil Rytarowski  <n54@gmx.com>
+
+	* gdb.base/fork-running-state.c: Include "signal.h".
+
 2020-04-17  Kamil Rytarowski  <n54@gmx.com>

 	* gdb.base/attach-twice.c: Include "sys/types.h".
diff --git a/gdb/testsuite/gdb.base/fork-running-state.c b/gdb/testsuite/gdb.base/fork-running-state.c
index a89c9418176..20bc3e6ae2d 100644
--- a/gdb/testsuite/gdb.base/fork-running-state.c
+++ b/gdb/testsuite/gdb.base/fork-running-state.c
@@ -20,6 +20,7 @@ 
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <errno.h>
+#include <signal.h>

 int save_parent;