summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2013-11-12 21:20:50 +0000
committerDmitry V. Levin <ldv@altlinux.org>2013-11-12 21:20:50 +0000
commit6974bd4f5fae1e78791cf64a6aebc1da2ded25fe (patch)
treeb65558c6821409011cbf9214f025551aee96b225 /defs.h
parent840a253bacdd107f90628dd3d5371d03fdca48ab (diff)
downloadstrace-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/defs.h b/defs.h
index 865c83d..5b2b0ca 100644
--- a/defs.h
+++ b/defs.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