]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-ctl-table-name.m4
Linux 4.14 compat: blk_queue_stackable()
[FreeBSD/FreeBSD.git] / config / kernel-ctl-table-name.m4
1 dnl #
2 dnl # 2.6.33 API change,
3 dnl # Removed .ctl_name from struct ctl_table.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_CTL_NAME], [
6         AC_MSG_CHECKING([whether struct ctl_table has ctl_name])
7         ZFS_LINUX_TRY_COMPILE([
8                 #include <linux/sysctl.h>
9         ],[
10                 struct ctl_table ctl __attribute__ ((unused));
11                 ctl.ctl_name = 0;
12         ],[
13                 AC_MSG_RESULT(yes)
14                 AC_DEFINE(HAVE_CTL_NAME, 1, [struct ctl_table has ctl_name])
15         ],[
16                 AC_MSG_RESULT(no)
17         ])
18 ])