]> git.proxmox.com Git - mirror_spl.git/commitdiff
Fix HAVE_MUTEX_OWNER_TASK_STRUCT autotools check on PPC64
authorRichard Yao <ryao@cs.stonybrook.edu>
Tue, 5 Feb 2013 21:42:29 +0000 (16:42 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 5 Feb 2013 23:36:03 +0000 (15:36 -0800)
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 <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
config/spl-build.m4

index 85184043cacd3b14d34ef4fade6b5ee6c9cfe89b..4cb7e1da29bce1681608273feac4d0ecb1fd75a3 100644 (file)
@@ -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;