Compilation updates
diff --git a/process.c b/process.c
index aa169de..9d09c8a 100644
--- a/process.c
+++ b/process.c
@@ -44,15 +44,20 @@
#include <machine/reg.h>
#endif /* SUNOS4 */
-#if defined(linux) && !defined(__GLIBC__)
+#if HAVE_LINUX_PTRACE_H
+#undef PTRACE_SYSCALL
#include <linux/ptrace.h>
#endif
#ifdef HAVE_SYS_REG_H
# include <sys/reg.h>
+#ifndef PTRACE_PEEKUSR
# define PTRACE_PEEKUSR PTRACE_PEEKUSER
+#endif
+#ifndef PTRACE_POKEUSR
# define PTRACE_POKEUSR PTRACE_POKEUSER
#endif
+#endif
#ifdef LINUX
#include <asm/posix_types.h>