]> granicus.if.org Git - strace/commit
Include <linux/ptrace.h> regardless of <sys/reg.h> existence
authorMaarten ter Huurne <maarten@treewalker.org>
Sun, 19 Oct 2014 23:02:48 +0000 (01:02 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 31 Oct 2014 23:04:59 +0000 (23:04 +0000)
commit40c174b38b15adb059f3e855e24fcfea9e091a87
tree9a961a9d307f03aa7da6db7b6ad88cfa90a49c6f
parent788c0d660d91032d6ce4ac646d86b20dc56e11ea
Include <linux/ptrace.h> regardless of <sys/reg.h> existence

This fixes compilation with musl libc.
This approach was already used in process.c, so I assume it is safe.

* signal.c: Move [HAVE_LINUX_PTRACE_H] code out of [HAVE_SYS_REG_H] check.
* syscall.c: Likewise.
* util.c: Likewise.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
signal.c
syscall.c
util.c