diff options
-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 |