Re: [PATCH] Fix: rseq uapi: Adapt header includes to follow glibc header changes

From: Rik van Riel
Date: Wed Oct 25 2023 - 21:05:41 EST


On Wed, 2023-10-25 at 17:48 -0400, Mathieu Desnoyers wrote:
> With "recent" glibc headers, using <sys/types.h> with __GNU_SOURCE
> fails
> to have __u32 and others types needed by the rseq.h uapi header file.
> Include ctype.h and asm/types.h to fix this. Add a __KERNEL__ #ifdef
> to
> select the kernel vs userspace header includes.
>
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
> Reported-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
> Cc: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
> Cc: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
>
Acked-by: Rik van Riel <riel@xxxxxxxxxxx>

--
All Rights Reversed.