[PATCH] Linux: Match kernel text for SCHED_ macros

Dmitry V. Levin ldv@strace.io
Fri Oct 25 22:04:05 GMT 2024


On Fri, Oct 25, 2024 at 03:00:50PM +0200, Florian Weimer wrote:
> This avoids -Werror build issues in strace, which bundles UAPI
> headers, but does not include them as system headers.
> 
> Fixes commit c444cc1d8335243c5c4e636d6a26c472df85522c
> ("Linux: Add missing scheduler constants to <sched.h>").
> 
> Tested on x86_64-linux-gnu.

Looks like commit c444cc1d8335243c5c4e636d6a26c472df85522c indeed broke
compilation of several strace tests that use the following pattern:
 
 #include <sched.h>
 #include <linux/sched.h>
  
I suppose this patch fixes that issue, however, I don't see what
"does not include them as system headers" could possibly mean.


-- 
ldv


More information about the Libc-alpha mailing list