summaryrefslogtreecommitdiff
path: root/libsanitizer/include/system/sys/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsanitizer/include/system/sys/ptrace.h')
-rw-r--r--libsanitizer/include/system/sys/ptrace.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libsanitizer/include/system/sys/ptrace.h b/libsanitizer/include/system/sys/ptrace.h
new file mode 100644
index 00000000000..1cfe4ce96e0
--- /dev/null
+++ b/libsanitizer/include/system/sys/ptrace.h
@@ -0,0 +1,7 @@
+#include_next <sys/ptrace.h>
+#ifndef PTRACE_GETREGSET
+/* glibc before
+ https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=cbff0d9689c4d68578b6a4f0a17807232506ea27
+ doesn't define PTRACE_GETREGSET. */
+#define PTRACE_GETREGSET 0x4204
+#endif