]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-bdi.m4
Stop runtime pointer modifications in autotools checks
[FreeBSD/FreeBSD.git] / config / kernel-bdi.m4
1 dnl #
2 dnl # 2.6.32 API change
3 dnl # Private backing_device_info interfaces available
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_BDI], [
6         AC_MSG_CHECKING([whether super_block has s_bdi])
7         ZFS_LINUX_TRY_COMPILE([
8                 #include <linux/fs.h>
9
10                 static const struct super_block
11                     sb __attribute__ ((unused)) {
12                         .s_bdi = NULL,
13                 }
14         ],[
15         ],[
16                 AC_MSG_RESULT(yes)
17                 AC_DEFINE(HAVE_BDI, 1, [struct super_block has s_bdi])
18         ],[
19                 AC_MSG_RESULT(no)
20         ])
21 ])