diff options
author | Brian Behlendorf <[email protected]> | 2010-07-01 13:37:43 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-07-01 13:53:26 -0700 |
commit | 7119bf704490bcb9abca9fa80214313024d381a2 (patch) | |
tree | 9a1a323ce6eb009b7c3a63c6fcfb794801e5fc8f /spl_config.h.in | |
parent | e2d28a3743807c8708727cf51b94e4e8407bea65 (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 'spl_config.h.in')
-rw-r--r-- | spl_config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spl_config.h.in b/spl_config.h.in index a22ca7b8b..48b610b32 100644 --- a/spl_config.h.in +++ b/spl_config.h.in @@ -183,6 +183,9 @@ /* Define to 1 if you have the <unistd.h> header file. */ #undef HAVE_UNISTD_H +/* user_path_dir() is available */ +#undef HAVE_USER_PATH_DIR + /* Page state NR_ACTIVE is available */ #undef HAVE_ZONE_STAT_ITEM_NR_ACTIVE |