configure.ac: Fix uncorrect detection because of linux/btrfs.h
authorYang Xu <xuyang2018.jy@fujitsu.com>
Wed, 1 Sep 2021 12:43:24 +0000 (20:43 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 5 Sep 2021 14:06:00 +0000 (22:06 +0800)
commitfeee8000cb943bd596ee4ce5a5357363fe40c10b
treee1dfb90c04fa9e0aaa690a4882cf78e45cba8a4d
parente5ccb25d0129c81077e587558e5160ea58c61144
configure.ac: Fix uncorrect detection because of linux/btrfs.h

On old distros, we can't detect some btrfs structs because of
undeclared 'NULL' in btrfs_err_str function. This function has been
removed after kernel commit 68598d2ea8863 ("btrfs: remove
btrfs_err_str function from uapi/linux/btrfs.h").

Fix this bug in xfstests layer by adding stddef.h because NULL is
defined in stddef.h(it is in /usr/lib/gcc*/ directory).

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
configure.ac