summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
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