diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/spl-build.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index ae4e1f162..b908a56d5 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -76,6 +76,7 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [ SPL_AC_PUT_TASK_STRUCT SPL_AC_5ARGS_PROC_HANDLER SPL_AC_KVASPRINTF + SPL_AC_3ARGS_FILE_FSYNC ]) AC_DEFUN([SPL_AC_MODULE_SYMVERS], [ @@ -1438,3 +1439,22 @@ AC_DEFUN([SPL_AC_KVASPRINTF], [ [kvasprintf() is available])], []) ]) + +dnl # +dnl # 2.6.35 API change, +dnl # Unused 'struct dentry *' removed from prototype. +dnl # +AC_DEFUN([SPL_AC_3ARGS_FILE_FSYNC], [ + AC_MSG_CHECKING([whether file_fsync() wants 3 args]) + SPL_LINUX_TRY_COMPILE([ + #include <linux/buffer_head.h> + ],[ + file_fsync(NULL, NULL, 0); + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_3ARGS_FILE_FSYNC, 1, + [file_fsync() wants 3 args]) + ],[ + AC_MSG_RESULT(no) + ]) +]) |