diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2022-12-23 18:03:45 +0100 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2022-12-29 08:43:52 -0800 |
commit | 22c877d93eedccebcf0260ce8c37b9b1f908a76f (patch) | |
tree | 5e1e87da85a08fa9a213de77cbc75a267fdc2daa | |
parent | 8d7c60b4dd7d59e8239b1ef113ea4ac092bc4a7d (diff) | |
download | iproute2-22c877d93eedccebcf0260ce8c37b9b1f908a76f.tar.gz |
configure: Remove include <sys/stat.h>
The check_name_to_handle_at() function in the configure script is
including sys/stat.h. This include fails with glibc 2.36 like this:
````
In file included from /linux-5.15.84/include/uapi/linux/stat.h:5,
from /toolchain-x86_64_gcc-12.2.0_glibc/include/bits/statx.h:31,
from /toolchain-x86_64_gcc-12.2.0_glibc/include/sys/stat.h:465,
from config.YExfMc/name_to_handle_at_test.c:3:
/linux-5.15.84/include/uapi/linux/types.h:10:2: warning: #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders" [-Wcpp]
10 | #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders"
| ^~~~~~~
In file included from /linux-5.15.84/include/uapi/linux/posix_types.h:5,
from /linux-5.15.84/include/uapi/linux/types.h:14:
/linux-5.15.84/include/uapi/linux/stddef.h:5:10: fatal error: linux/compiler_types.h: No such file or directory
5 | #include <linux/compiler_types.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
````
Just removing the include works, the manpage of name_to_handle_at() says
only fcntl.h is needed.
Fixes: c5b72cc56bf8 ("lib/fs: fix issue when {name,open}_to_handle_at() is not implemented")
Tested-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rwxr-xr-x | configure | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -214,7 +214,6 @@ check_name_to_handle_at() cat >$TMPDIR/name_to_handle_at_test.c <<EOF #define _GNU_SOURCE #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> int main(int argc, char **argv) { |