]> git.proxmox.com Git - mirror_spl-debian.git/blob - config/kernel-ctl-table-name.m4
dch: close a bug and refresh timestamp.
[mirror_spl-debian.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([SPL_AC_CTL_NAME], [
6 AC_MSG_CHECKING([whether struct ctl_table has ctl_name])
7 SPL_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 ])