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

lustre/autoconf/lustre-core.m4

index 1e40dfc..a05fd1a 100644 (file)
@@ -993,7 +993,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)
@@ -1011,7 +1011,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)