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 /defs.h | |
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.
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |