[PATCH] Don't include <bits/openat2.h> directly (bug 33848)
Florian Weimer
fweimer@redhat.com
Tue Feb 3 12:28:34 GMT 2026
* Andreas Schwab:
> Headers from bits directories should never be included directly, only via
> the official headers.
> ---
> sysdeps/unix/sysv/linux/openat2.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/sysdeps/unix/sysv/linux/openat2.c b/sysdeps/unix/sysv/linux/openat2.c
> index 7587dd577a..ac7b70584e 100644
> --- a/sysdeps/unix/sysv/linux/openat2.c
> +++ b/sysdeps/unix/sysv/linux/openat2.c
> @@ -17,7 +17,6 @@
> <https://www.gnu.org/licenses/>. */
>
> #include <fcntl.h>
> -#include <bits/openat2.h>
> #include <sysdep-cancel.h>
>
> int
Seems reasonable based on what I saw when I investigated the bug.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Thanks,
Florian
More information about the Libc-alpha
mailing list