[PATCH] Linux: Match kernel text for SCHED_ macros

Florian Weimer fweimer@redhat.com
Fri Oct 25 23:13:53 GMT 2024


* Dmitry V. Levin:

> 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.

It's the difference between -I and -isystem.  Only the latter suppresses
warnings by default.  The default search path roughly behaves as
specified with -isystem.

Thanks,
Florian



More information about the Libc-alpha mailing list