From: Yang Xu Date: Wed, 17 Mar 2021 10:11:13 +0000 (+0800) Subject: src/chprojid_fail.c: Fix undefined compile error on old kernel X-Git-Tag: v2022.05.01~516 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=3d15d3fe85f91f44b29f74f1effd4f714e5a0de2 src/chprojid_fail.c: Fix undefined compile error on old kernel On old kernel, linux/fs.h doesn't include FS_IOC_FSGETXATTR and FS_IOC_FSGETXATTR ioctl flag. It also doesn't include fsxattr struct. To fix this error, just use global.h like fsstress.c. Signed-off-by: Yang Xu Reviewed-by: Darrick J. Wong Signed-off-by: Eryu Guan --- diff --git a/src/chprojid_fail.c b/src/chprojid_fail.c index 8c5b5fee..6d1e0fac 100644 --- a/src/chprojid_fail.c +++ b/src/chprojid_fail.c @@ -15,6 +15,7 @@ #include #include #include +#include "global.h" static char zerobuf[65536];