summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/sys
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sh/sys')
-rw-r--r--libc/sysdeps/linux/sh/sys/user.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/sh/sys/user.h b/libc/sysdeps/linux/sh/sys/user.h
index b1adc13b7..91b00916b 100644
--- a/libc/sysdeps/linux/sh/sys/user.h
+++ b/libc/sysdeps/linux/sh/sys/user.h
@@ -22,6 +22,17 @@
#include <unistd.h>
#include <asm/ptrace.h>
+/* asm/ptrace.h polutes the namespace. */
+#undef PTRACE_GETREGS
+#undef PTRACE_SETREGS
+#undef PTRACE_GETFPREGS
+#undef PTRACE_SETFPREGS
+#undef PTRACE_GETFDPIC
+#undef PTRACE_GETFDPIC_EXEC
+#undef PTRACE_GETFDPIC_INTERP
+#undef PTRACE_GETDSPREGS
+#undef PTRACE_SETDSPREGS
+
/*
* Core file format: The core file is written in such a way that gdb
* can understand it and provide useful information to the user (under