diff options
author | Richard Yao <[email protected]> | 2013-02-05 16:42:29 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-02-05 15:36:03 -0800 |
commit | a0625691b39468d04eb716919e237f96a3987b48 (patch) | |
tree | ac9a423004500e03ccdcc61a741fe768bf1d9f26 | |
parent | dd3678fc29d75286b57e705454bbd7e60e1b44e0 (diff) |
Fix HAVE_MUTEX_OWNER_TASK_STRUCT autotools check on PPC64
The HAVE_MUTEX_OWNER_TASK_STRUCT fails on PPC64 with the following
error:
error: 'current' undeclared (first use in this function)
We include linux/sched.h to ensure that current is available.
Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
-rw-r--r-- | config/spl-build.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index 85184043c..4cb7e1da2 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -1269,6 +1269,7 @@ AC_DEFUN([SPL_AC_MUTEX_OWNER_TASK_STRUCT], [ EXTRA_KCFLAGS="-Werror" SPL_LINUX_TRY_COMPILE([ #include <linux/mutex.h> + #include <linux/sched.h> ],[ struct mutex mtx __attribute__ ((unused)); mtx.owner = current; |