Whamcloud - gitweb
fix incorrect detecting readv/writev.
authorshadow <shadow>
Tue, 9 Dec 2008 07:00:22 +0000 (07:00 +0000)
committershadow <shadow>
Tue, 9 Dec 2008 07:00:22 +0000 (07:00 +0000)
Branch HEAD
b=17918
i=green

lustre/autoconf/lustre-core.m4

index 08a573f..657dbef 100644 (file)
@@ -1117,7 +1117,7 @@ AC_DEFUN([LC_FILE_WRITEV],
 LB_LINUX_TRY_COMPILE([
         #include <linux/fs.h>
 ],[
-        struct file_operations *fops;
+        struct file_operations *fops = NULL;
         fops->writev = NULL;
 ],[
         AC_MSG_RESULT(yes)
@@ -1135,7 +1135,7 @@ AC_DEFUN([LC_FILE_READV],
 LB_LINUX_TRY_COMPILE([
         #include <linux/fs.h>
 ],[
-        struct file_operations *fops;
+        struct file_operations *fops = NULL;
         fops->readv = NULL;
 ],[
         AC_MSG_RESULT(yes)