]> git.proxmox.com Git - mirror_spl-debian.git/blame - config/kernel-ctl-table-name.m4
dch: close a bug and refresh timestamp.
[mirror_spl-debian.git] / config / kernel-ctl-table-name.m4
CommitLineData
34ee731f
AX
1dnl #
2dnl # 2.6.33 API change,
3dnl # Removed .ctl_name from struct ctl_table.
4dnl #
5AC_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])