diff options
author | TBK <tbk@jjtc.eu> | 2021-07-10 14:26:50 +0000 |
---|---|---|
committer | Dave Watson <dade.watson@gmail.com> | 2021-07-10 11:18:28 -0700 |
commit | 0c3a775bbeba8948f12f266f744655f2e80d3894 (patch) | |
tree | 20f6ba07d13b50e4b70d13f73545c9e6f3322507 | |
parent | a761757a31116729eb1d48fc0cdab23ce399dfc9 (diff) | |
download | libunwind-0c3a775bbeba8948f12f266f744655f2e80d3894.tar.gz |
Include asm/ptrace.h in _UPT_reg_offset.c
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/ptrace/_UPT_reg_offset.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0dec4ca6..32d29d65 100644 --- a/configure.ac +++ b/configure.ac @@ -34,7 +34,7 @@ esac dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(asm/ptrace_offsets.h endian.h sys/endian.h sys/param.h \ +AC_CHECK_HEADERS(asm/ptrace_offsets.h asm/ptrace.h endian.h sys/endian.h sys/param.h \ execinfo.h ia64intrin.h sys/uc_access.h unistd.h signal.h sys/types.h \ sys/procfs.h sys/ptrace.h sys/syscall.h byteswap.h elf.h sys/elf.h \ link.h sys/link.h) diff --git a/src/ptrace/_UPT_reg_offset.c b/src/ptrace/_UPT_reg_offset.c index 5c3085d2..b7dd3b79 100644 --- a/src/ptrace/_UPT_reg_offset.c +++ b/src/ptrace/_UPT_reg_offset.c @@ -28,6 +28,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <stddef.h> +#ifdef HAVE_ASM_PTRACE_H +# include <asm/ptrace.h> +#endif + #ifdef HAVE_ASM_PTRACE_OFFSETS_H # include <asm/ptrace_offsets.h> #endif |