Skip to content

Commit 61e8d46

Browse files
um: Correctly check for PTRACE_GETRESET/SETREGSET
When checking for PTRACE_GETRESET/SETREGSET, make sure that the correct header file is included. We need linux/ptrace.h which contains all ptrace UAPI related defines. Otherwise #if defined(PTRACE_GETRESET) is always false. Cc: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 94df7fe commit 61e8d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/um/user-offsets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <sys/mman.h>
66
#include <sys/user.h>
77
#define __FRAME_OFFSETS
8-
#include <asm/ptrace.h>
8+
#include <linux/ptrace.h>
99
#include <asm/types.h>
1010

1111
#ifdef __i386__

0 commit comments

Comments
 (0)