diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-12 21:20:50 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-12 21:20:50 +0000 |
commit | 6974bd4f5fae1e78791cf64a6aebc1da2ded25fe (patch) | |
tree | b65558c6821409011cbf9214f025551aee96b225 | |
parent | 840a253bacdd107f90628dd3d5371d03fdca48ab (diff) | |
download | strace-6974bd4f5fae1e78791cf64a6aebc1da2ded25fe.tar.gz strace-6974bd4f5fae1e78791cf64a6aebc1da2ded25fe.tar.bz2 strace-6974bd4f5fae1e78791cf64a6aebc1da2ded25fe.tar.xz |
Make PTRACE_PEEKUSER/PTRACE_POKEUSER checks less glibc specific
* configure.ac (AC_CHECK_DECLS): Add PTRACE_PEEKUSER and
PTRACE_POKEUSER.
* defs.h: Define PTRACE_PEEKUSER and PTRACE_POKEUSER only if
they are not provided by <sys/ptrace.h>.
Reported by John Spencer.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | defs.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0cee6c5..3ea1956 100644 --- a/configure.ac +++ b/configure.ac @@ -274,6 +274,8 @@ AC_CHECK_DECLS(m4_normalize([ PTRACE_O_TRACEFORK, PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEVFORK, + PTRACE_PEEKUSER, + PTRACE_POKEUSER, PTRACE_SETOPTIONS ]),,, [#include <sys/ptrace.h>]) @@ -245,8 +245,10 @@ extern long ptrace(int, int, char *, long); # define PTRACE_EVENT_EXIT 6 #endif -#if !defined(__GLIBC__) +#if !HAVE_DECL_PTRACE_PEEKUSER # define PTRACE_PEEKUSER PTRACE_PEEKUSR +#endif +#if !HAVE_DECL_PTRACE_POKEUSER # define PTRACE_POKEUSER PTRACE_POKEUSR #endif |