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 <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Yang Xu
2021-03-17 18:11:13 +08:00
committed by Eryu Guan
parent 4a2683ce3e
commit 3d15d3fe85
+1
View File
@@ -15,6 +15,7 @@
#include <string.h>
#include <errno.h>
#include <linux/fs.h>
#include "global.h"
static char zerobuf[65536];