aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-07-01 13:37:43 -0700
committerBrian Behlendorf <[email protected]>2010-07-01 13:53:26 -0700
commit7119bf704490bcb9abca9fa80214313024d381a2 (patch)
tree9a1a323ce6eb009b7c3a63c6fcfb794801e5fc8f /config
parente2d28a3743807c8708727cf51b94e4e8407bea65 (diff)
Add configure check for user_path_dir()
I didn't notice at the time but user_path_dir() was not introduced at the same time as set_fs_pwd() change. I had lumped the two together but in fact user_path_dir() was introduced in 2.6.27 and set_fs_pwd() taking 2 args was introduced in 2.6.25. This means builds against 2.6.25-2.6.26 kernels were broken. To fix this I've added a check for user_path_dir() and no longer assume that if set_fs_pwd() takes 2 args then user_path_dir() is also available.
Diffstat (limited to 'config')
-rw-r--r--config/spl-build.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index 3bbfd0195..40f072bf7 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -68,6 +68,7 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
SPL_AC_ZONE_STAT_ITEM_INACTIVE
SPL_AC_ZONE_STAT_ITEM_ACTIVE
SPL_AC_GET_ZONE_COUNTS
+ SPL_AC_USER_PATH_DIR
SPL_AC_SET_FS_PWD
SPL_AC_2ARGS_SET_FS_PWD
SPL_AC_2ARGS_VFS_UNLINK
@@ -1299,6 +1300,19 @@ AC_DEFUN([SPL_AC_GET_ZONE_COUNTS], [
])
dnl #
+dnl # 2.6.27 API change,
+dnl # The user_path_dir() replaces __user_walk()
+dnl #
+AC_DEFUN([SPL_AC_USER_PATH_DIR], [
+ SPL_CHECK_SYMBOL_EXPORT(
+ [user_path_at],
+ [],
+ [AC_DEFINE(HAVE_USER_PATH_DIR, 1,
+ [user_path_dir() is available])],
+ [])
+])
+
+dnl #
dnl # Symbol available in RHEL kernels not in stock kernels.
dnl #
AC_DEFUN([SPL_AC_SET_FS_PWD], [