1 From d6bf0c57a6bf361ac53887653aa1878e60d56335 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 0a23bcb..35b7cbb 100644
18 --- a/gdb/nat/linux-ptrace.h
19 +++ b/gdb/nat/linux-ptrace.h
20 @@ -23,7 +23,8 @@ struct buffer;
21 #include "nat/gdb_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>