diff options
author | Chunwei Chen <[email protected]> | 2014-03-28 12:59:36 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-04-10 14:27:03 -0700 |
commit | 408ec0d2e13188f6f500f7010b5bc5bc5bf5bb9c (patch) | |
tree | 676aa1a36122af179ce424eaed6441d055e867a6 /config | |
parent | 443c3f73321d18d0092b11390e628e3de9d15d7c (diff) |
Linux 3.14 compat: posix_acl_{create,chmod}
posix_acl_{create,chmod} is changed to __posix_acl_{create_chmod}
Signed-off-by: Chunwei Chen <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #2124
Diffstat (limited to 'config')
-rw-r--r-- | config/kernel-acl.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/kernel-acl.m4 b/config/kernel-acl.m4 index e9a254780..a03ee5bff 100644 --- a/config/kernel-acl.m4 +++ b/config/kernel-acl.m4 @@ -44,6 +44,9 @@ dnl # 3.1 API change, dnl # posix_acl_chmod_masq() is not exported anymore and posix_acl_chmod() dnl # was introduced to replace it. dnl # +dnl # 3.14 API change, +dnl # posix_acl_chmod() is changed to __posix_acl_chmod() +dnl # AC_DEFUN([ZFS_AC_KERNEL_POSIX_ACL_CHMOD], [ AC_MSG_CHECKING([whether posix_acl_chmod exists]) ZFS_LINUX_TRY_COMPILE([ @@ -57,6 +60,19 @@ AC_DEFUN([ZFS_AC_KERNEL_POSIX_ACL_CHMOD], [ ],[ AC_MSG_RESULT(no) ]) + + AC_MSG_CHECKING([whether __posix_acl_chmod exists]) + ZFS_LINUX_TRY_COMPILE([ + #include <linux/fs.h> + #include <linux/posix_acl.h> + ],[ + __posix_acl_chmod(NULL, 0, 0) + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE___POSIX_ACL_CHMOD, 1, [__posix_acl_chmod() exists]) + ],[ + AC_MSG_RESULT(no) + ]) ]) dnl # |