Include signal.h in nat/amd64-linux-siginfo.h
authorYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:33:01 +0000 (14:33 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:33:01 +0000 (14:33 +0000)
$ make check-headers CHECK_HEADERS="nat/amd64-linux-siginfo.h"
....
../../binutils-gdb/gdb/nat/amd64-linux-siginfo.h:52:39: error: 'siginfo_t' was not declared in this scope
 int amd64_linux_siginfo_fixup_common (siginfo_t *native, gdb_byte *inf,
                                       ^
gdb:

2017-01-06  Yao Qi  <yao.qi@linaro.org>

* nat/amd64-linux-siginfo.h: Include signal.h.

gdb/ChangeLog
gdb/nat/amd64-linux-siginfo.h

index 36a81aeaee948c3a5eb8f20ac66e21735e3a1919..a8de40550d009a44d628faadeea2f73468860f00 100644 (file)
@@ -1,3 +1,7 @@
+2017-01-06  Yao Qi  <yao.qi@linaro.org>
+
+       * nat/amd64-linux-siginfo.h: Include signal.h.
+
 2017-01-06  Yao Qi  <yao.qi@linaro.org>
 
        * nat/aarch64-linux-hw-point.h: Include break-common.h.
index 452a9f15b70b85943acf64d80f9adab1dc3c88e2..ccc71c82ef0b590b3270296924dc8b586cc1169e 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef AMD64_LINUX_SIGINFO_H
 #define AMD64_LINUX_SIGINFO_H 1
 
+#include <signal.h>  /* For siginfo_t.  */
+
 /* When GDB is built as a 64-bit application on Linux, the
    PTRACE_GETSIGINFO data is always presented in 64-bit layout.  Since
    debugging a 32-bit inferior with a 64-bit GDB should look the same