1 From 6de192acd4807d7fd57caf451567f09308bd8350 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Fri, 9 Jun 2017 10:19:32 +0200
4 Subject: [PATCH] Fix gdbserver build on uClibc/noMMU
6 The noMMU specific code requires including <sched.h>.
9 https://cgit.openadk.org/cgi/cgit/openadk.git/plain/package/gdbserver/patches/nommu.patch.
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 gdb/nat/linux-ptrace.h | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
16 diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h
17 index be6c395..c9f85aa 100644
18 --- a/gdb/nat/linux-ptrace.h
19 +++ b/gdb/nat/linux-ptrace.h
20 @@ -23,7 +23,8 @@ struct buffer;
21 #include <sys/ptrace.h>
24 -#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))
26 +#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_USE_MMU__))
27 /* PTRACE_TEXT_ADDR and friends. */
28 #include <asm/ptrace.h>