device-utils.c: Use linux mount.h instead of sys/mount.h
PATCH 1/1 device-utils.c: Use linux mount.h instead of sys/mount.h
This file includes linucx/fs.h which includes linux/mount.h and with glibc 2.36 linux/mount.h and glibc mount.h are not compatible [1] therefore try to avoid including both headers
[1] https://sourceware.org/glibc/wiki/Release/2.36
Signed-off-by Khem Raj <[email protected]>
--- common/device-utils.c | 1 - 1 file changed, 1 deletion(-)
common/device-utils.c +0 -1
@@ -15,7 +15,6 @@*/ #include <sys/ioctl.h> -#include <sys/mount.h> #include <sys/statfs.h> #include <sys/types.h> #include <stdio.h>
Signature · 1 line
2.37.1
Quoted 7 lines · Khem Raj
This file includes
linucx/fs.hwhich includeslinux/mount.hand with glibc 2.36linux/mount.hand glibcmount.hare not compatible [1] therefore try to avoid including both headers[1] https://sourceware.org/glibc/wiki/Release/2.36
Signed-off-by Khem Raj <[email protected]>
I don't have 2.36 available yet so can't test it, but it builds on all the older distros so it's safe. Added to devel, thanks.